POST
/
v1
/
tickets
/
priority
curl --request POST \
  --url https://platform.thena.ai/v1/tickets/priority \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "displayName": "High",
  "description": "This is a high priority ticket",
  "isDefault": true,
  "name": "High",
  "teamId": "123e4567-e89b-12d3-a456-426614174000"
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "displayName": "<string>",
    "description": "<string>",
    "teamId": "<string>",
    "organizationId": "<string>",
    "isDefault": true,
    "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 priority

Example:

"High"

teamId
string
required

The ID of the team to which the ticket priority belongs

Example:

"123e4567-e89b-12d3-a456-426614174000"

displayName
string

The display name of the ticket priority

Example:

"High"

description
string

The description of the ticket priority

Example:

"This is a high priority ticket"

isDefault
boolean

Whether the ticket priority is the default one

Example:

true

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 priority operations