PATCH
/
v1
/
tags
/
{tagId}
curl --request PATCH \
  --url https://platform.thena.ai/v1/tags/{tagId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "name": "Cat",
  "color": "#FF0000",
  "tagType": "ticket",
  "description": "<string>"
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "color": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Path Parameters

tagId
string
required

Body

application/json
name
string
required

The name of the tag

Required string length: 1 - 50
Example:

"Cat"

color
string
required

Color in hexadecimal format

Example:

"#FF0000"

tagType
enum<string>
required

The type of the tag

Available options:
ticket,
skills
description
string | null

Optional description of the tag

Response

200
application/json
Operation successful
status
boolean
default:true
required

The status of the response

message
string
default:Success
required

The message of the response

timestamp
string
default:2024-01-01T00:00:00.000Z
required

The timestamp of the response

data
object
required

The response for create/update/delete tag operations