Skip to main content
POST
/
evidences
/
{COMPANY_ID}
/
category
/
{CATEGORY_ID}
/
subcategory
Add a subcategory
curl --request POST \
  --url https://api.timelockdata.com/api/v1/evidences/{COMPANY_ID}/category/{CATEGORY_ID}/subcategory \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "image": {}
}
'
{
  "id": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

COMPANY_ID
string
required

Company identifier

CATEGORY_ID
string
required

Parent category identifier

Body

application/json
name
string
required

Name of the category

description
string

Description of the category

image
object

Image file for the category

Response

Subcategory created successfully

id
string
required

ID of the newly created category or subcategory