PATCH
/
v1
/
tickets
/
sub-ticket
curl --request PATCH \
  --url https://platform.thena.ai/v1/tickets/sub-ticket \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "assignedAgentId": "<string>",
  "assignedAgentEmail": "<string>",
  "description": "<string>",
  "dueDate": "2023-11-07T05:31:56Z",
  "submitterEmail": "<string>",
  "statusId": "<string>",
  "statusName": "<string>",
  "priorityId": "<string>",
  "priorityName": "<string>",
  "metadata": {},
  "typeId": "<string>",
  "isPrivate": true,
  "source": "<string>",
  "aiGeneratedTitle": "<string>",
  "aiGeneratedSummary": "<string>",
  "attachmentUrls": [
    "<string>"
  ],
  "customFieldValues": [
    {}
  ],
  "parentTicketId": "<string>",
  "subTicketId": "<string>",
  "title": "<string>"
}'
{
  "status": true,
  "message": "Success",
  "timestamp": "2024-01-01T00:00:00.000Z",
  "data": {
    "id": "<string>",
    "title": "<string>",
    "ticketId": 123,
    "description": "<string>",
    "accountId": "<string>",
    "status": "<string>",
    "statusId": "<string>",
    "priority": "<string>",
    "priorityId": "<string>",
    "storyPoints": 123,
    "account": "<string>",
    "teamId": "<string>",
    "teamName": "<string>",
    "isPrivate": true,
    "typeId": "<string>",
    "type": "<string>",
    "assignedAgent": "<string>",
    "assignedAgentId": "<string>",
    "assignedAgentEmail": "<string>",
    "requestorEmail": "<string>",
    "customerContactId": "<string>",
    "customerContactFirstName": "<string>",
    "customerContactLastName": "<string>",
    "customerContactEmail": "<string>",
    "submitterEmail": "<string>",
    "customFieldValues": [
      "<string>"
    ],
    "deletedAt": "<string>",
    "archivedAt": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "formId": "<string>",
    "aiGeneratedTitle": "<string>",
    "aiGeneratedSummary": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Body

application/json
parentTicketId
string
required

The ID of the parent ticket

assignedAgentId
string

The ID of the assigned agent

assignedAgentEmail
string

The email of the assigned agent

description
string

The description of the ticket

dueDate
string

The due date of the ticket

submitterEmail
string

The email of the submitter

statusId
string

The ID of the status, status id if provided is used over status name

statusName
string

The name of the status to match against

priorityId
string

The ID of the priority, priority id if provided is used over priority name

priorityName
string

The name of the priority to match against

metadata
object

The metadata of the ticket

typeId
string

The ID of the type

isPrivate
boolean

Whether the ticket is private

source
string

The source of the ticket

aiGeneratedTitle
string

The AI generated title of the ticket

aiGeneratedSummary
string

The AI generated summary of the ticket

attachmentUrls
string[]

The attachment URLs

customFieldValues
object[]

The custom field values

subTicketId
string

The ID of the ticket to mark as a sub-ticket

title
string

The title of the ticket

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 operations