POST
/
v1
/
tickets
/
draft
curl --request POST \
  --url https://platform.thena.ai/v1/tickets/draft \
  --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>",
  "accountId": "<string>",
  "teamId": "<string>",
  "draftScope": "personal"
}'
{
  "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

Body

application/json
title
string
required

The title of the ticket

requestorEmail
string
required

The email of the requestor

teamId
string
required

The ID of the team

draftScope
enum<string>
default:personal
required

The scope of the draft

Available options:
personal,
team
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

accountId
string

The ID of the account

Response

201
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