Create Collection

Create a new collection (idempotent). Returns 201 if created, 200 if already exists. Headers: - Authorization: Bearer {api_key} - Captain API key for authentication - X-Organization-ID: Organization UUID Returns: - CollectionResponse with collection details

Path parameters

collection_namestringRequired
Name of the collection to create

Headers

AuthorizationstringRequired
Captain API key for authentication
X-Organization-IDstringRequired
Organization UUID

Request

This endpoint expects an object.
descriptionstringOptional

Response

Collection Already Exists
collection_namestring
collection_idstring
statusstring
messagestring