Number of APIs: 3
GET {{baseUrl}}/apis/{{apiId}}/collections/{{collectionId}}
Gets a collection attached to an API. You can use the Note: The versionId
query parameter to get a collection published in a version.versionId
query parameter is a required parameter for API viewers.
POST {{baseUrl}}/apis/{{apiId}}/collections
Adds a collection to an API. To do this, use the following For examples of each method, see the collection's response examples.operationType
values:
COPY_COLLECTION
— Copies a collection from the workspace and adds it to an API.CREATE_NEW
— Creates a new collection by providing the new collection's content.GENERATE_FROM_SCHEMA
— Generates the collection from an API schema.
options
— An object that contains advanced creation options and their values. You can find a complete list of properties and their values in Qodex's OpenAPI 3.0 to Qodex Collection v2.1.0 Converter OPTIONS documentation. These properties are case-sensitive.
3. Sync collection with schema
PUT {{baseUrl}}/apis/{{apiId}}/collections/{{collectionId}}/sync-with-schema-tasks
Syncs a collection attached to an API with the API schema. This is an asynchronous endpoint that returns an HTTP The response contains a polling link to the Note: This endpoint only supports the OpenAPI 3 schema type.202 Accepted
response./apis/{apiId}/tasks/{taskId}
endpoint in the Location header.
ENDPOINTS