Skip to main content
POST
/
classification-classes
Create a classification class hierarchy
curl --request POST \
  --url https://api.example.com/classification-classes/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "rules": [
    {
      "label": "<string>",
      "subcategories": "<array>",
      "criteria": ""
    }
  ]
}
'
{
  "name": "<string>",
  "rules": [
    {
      "label": "<string>",
      "subcategories": "<array>",
      "criteria": ""
    }
  ],
  "organisation_id": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Headers

Api-key
string | null

Body

application/json
name
string
required
rules
Category · object[]
required

Response

Creates a classification class hierarchy to be used for a zero shot

name
string
required
rules
Category · object[]
required
organisation_id
string
required
id
string<uuid> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required