Skip to main content
PUT
/
evidences
/
{COMPANY_ID}
/
category
/
{CATEGORY_ID}
/
subcategory
/
{SUBCATEGORY_ID}
Update a subcategory
curl --request PUT \
  --url https://api.timelockdata.com/api/v1/evidences/{COMPANY_ID}/category/{CATEGORY_ID}/subcategory/{SUBCATEGORY_ID} \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form 'name=<string>' \
  --form action=CHANGE \
  --form 'description=<string>' \
  --form file='@example-file'
{
  "imageId": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

COMPANY_ID
string
required

Company identifier

CATEGORY_ID
string
required

Parent category identifier

SUBCATEGORY_ID
string
required

Subcategory identifier

Body

multipart/form-data
name
string
required

Name of the category

action
enum<string>
required

Action to perform on the category

Available options:
CHANGE,
ACTIVATE,
DEACTIVATE,
REMOVE
description
string

Description of the category

file
file

Image file for the category

Response

200 - application/json

Subcategory updated

imageId
string

ID of the category icon image