Create an API collection

Create an API collection within a project you specify.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
namestringRequired
Name of the collection.
project_idstringOptional
The ID of a specific project. Retrieve a list of project IDs using the list projects endpoint.

Response

Success reply
idinteger or null
The ID of the API collection.
namestring or null
The name of the API collection.
versionstring or null
The version number of the API collection.
urlstring or null
The URL of the API collection.
api_spec_urlstring or null
The URL of the specification file for the API collection.
created_atstring or null
Timestamp in ISO 8601 format when the API collection was created.
updated_atstring or null
Timestamp in ISO 8601 format when the API collection was last updated.

Errors