Create or update an OpenAPI spec
put
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$specSlugstringRequired
Slug of the OpenAPI specification
Body
sourceone ofRequired
or
Responses
200
OpenAPI specification has been updated
application/json
objectstring · enumRequiredPossible values:
The object type, which is always "openapi-spec"
idstringRequired
Unique identifier
createdAtstring · date-timeRequired
Date of creation
updatedAtstring · date-timeRequired
Date of the last update
slugstring · min: 1 · max: 100RequiredPattern:
Slug used as reference
^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$sourceURLstring · uri · max: 2048Optional
processingStateundefined · enumRequiredPossible values:
Processing state
visibilitystring · enumOptionalPossible values:
The visibility setting of the OpenAPI spec.
private: The spec is not publicly available.public: The spec is available to anyone with a public link.
lastVersionstringOptional
ID of the latest version of the OpenAPI specification
lastProcessedAtstring · date-timeOptional
Date of the last processing
lastProcessErrorCodeundefined · enumOptionalPossible values:
OpenAPI processing error code
lastProcessedErrorCountintegerRequired
Total number of processing errors before truncation of lastProcessedErrors.
201
OpenAPI specification has been created
application/json
400
Bad Request
application/json
put/orgs/{organizationId}/openapi/{specSlug}
Last updated
Was this helpful?