PATCH
/
v1
/
tickets
/
type
/
{id}
curl --request PATCH \
  --url https://platform.thena.ai/v1/tickets/type/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "color": "#000000",
  "icon": "<string>",
  "autoAssign": true,
  "isActive": true,
  "name": "Bug"
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "color": "<string>",
    "icon": "<string>",
    "isActive": true,
    "teamId": "<string>",
    "organizationId": "<string>",
    "autoAssign": true,
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Path Parameters

id
string
required

Body

application/json
color
string

The color of the ticket type

Example:

"#000000"

icon
string

Link to the icon of the ticket type

autoAssign
boolean

Whether to auto assign the ticket type

Example:

true

isActive
boolean

Whether the ticket type is active

Example:

true

name
string

The name of the ticket type

Example:

"Bug"

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 ticket type operations