PUT
/
v1
/
tickets
/
draft
/
{uid}
curl --request PUT \
  --url https://platform.thena.ai/v1/tickets/draft/{uid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "assignedAgentId": "<string>",
  "description": "<string>",
  "submitterEmail": "<string>",
  "statusId": "<string>",
  "priorityId": "<string>",
  "typeId": "<string>",
  "isPrivate": true,
  "attachmentUrls": [
    "<string>"
  ],
  "customFieldValues": [
    {}
  ],
  "metadata": {},
  "title": "<string>",
  "requestorEmail": "<string>",
  "status": "in_progress"
}'
{
  "uid": "<string>",
  "status": "<string>",
  "draftScope": "<string>",
  "entityType": "<string>",
  "content": {},
  "metadata": {},
  "createdBy": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "lastModifiedBy": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Path Parameters

uid
string
required

Body

application/json
assignedAgentId
string

The ID of the assigned agent

description
string

The description of the ticket

submitterEmail
string

The email of the submitter

statusId
string

The ID of the status

priorityId
string

The ID of the priority

typeId
string

The ID of the type

isPrivate
boolean

Whether the ticket is private

attachmentUrls
string[]

The attachment URLs

customFieldValues
object[]

The custom field values

metadata
object

Additional metadata for the draft

title
string

The title of the ticket

requestorEmail
string

The email of the requestor

status
enum<string>

The status of the draft

Available options:
in_progress,
ready_to_publish,
published,
discarded

Response

200
application/json
Operation successful
uid
string
required
status
string
required
draftScope
string
required
entityType
string
required
content
object
required
metadata
object
required
createdBy
string
required
createdAt
string
required
updatedAt
string
required
lastModifiedBy
string