POST
/
tickets
/
{ticket_number}
/
drafts
Create a draft comment for a ticket
curl --request POST \
  --url https://{your-workspace}.neetodesk.com/api/v1/public/tickets/{ticket_number}/drafts \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '{
  "content": "We are looking into the issue.",
  "comment_type": "note",
  "author_email": "oliver@example.com"
}'
{
  "id": "<string>",
  "comment_type": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "content": "<string>"
}
Replace {your-workspace} with your workspace’s subdomain.
Learn how to find your subdomain in Identifying your subdomain.

Headers

X-Api-Key
string
default:your-api-key
required

X-Api-Key is used to authenticate requests using an API key. Provide your API key in this header to access protected endpoints. Refer to Authentication for more information.

Path Parameters

ticket_number
number
required

Number of the ticket for the draft comment. Refer to Method 2 in the Getting Ticket ID section for instructions on how to find this number.

Body

application/json

Response

200 - application/json

OK - Draft created successfully

The response is of type object.