Skip to main content
POST
/
compute
/
collections
Create a collection
curl --request POST \
  --url https://api.quiva.ai/compute/collections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "my-collection",
  "description": "A collection for my compute resources",
  "collection_type": "function"
}
'
{
  "body": {
    "collection_type": "function",
    "description": "A collection for my compute resources",
    "name": "my-collection",
    "subject": "compute.123456789.collection",
    "type": "created",
    "modified": 1714378974
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Collection to create

name
string
required

Collection name

description
string

Collection description

collection_type
string

Collection type

Response

Collection created successfully

body
object