POST
/
categories
/
batch-create
curl --request POST \
  --url https://sdk.senso.ai/api/v1/categories/batch-create \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "categories": [
    {
      "name": "<string>",
      "description": "<string>",
      "topics": [
        {
          "name": "<string>",
          "description": "<string>"
        }
      ]
    }
  ]
}'
[
  {
    "category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "deleted_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

X-API-Key
string
header
required

API key authorization

Body

application/json

Response

201
application/json
Categories created successfully with the provided details

The response is of type object[].