POST
/
v1
/
tickets
/
status
curl --request POST \
  --url https://platform.thena.ai/v1/tickets/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "displayName": "<string>",
  "description": "<string>",
  "isDefault": true,
  "name": "<string>",
  "teamId": "<string>",
  "parentStatusId": "<string>",
  "moveParentTickets": true
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "displayName": "<string>",
    "description": "<string>",
    "isDefault": true,
    "teamId": "<string>",
    "organizationId": "<string>",
    "parentStatusId": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Body

application/json
name
string
required

The name of the ticket status

teamId
string
required

The team ID of the ticket status

parentStatusId
string
required

The parent status ID of the ticket status

displayName
string

The display name of the ticket status

description
string

The description of the ticket status

isDefault
boolean

Whether the ticket status is default

moveParentTickets
boolean

Whether to move the parent tickets to the new status

Response

201
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 ticket status operations