الانتقال إلى المحتوى الرئيسي
POST
Adds a comment to a ticket

التفويضات

X-API-Key
string
header
مطلوب

Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.

معلمات المسار

ticketId
string<uuid>
مطلوب

Ticket identifier.

الجسم

Comment details.

ConversationTypeId
integer<int64>
مطلوب

1 Public, 2 Private, 3 Side Conversation, 4 Approval.

Body
string
مطلوب

Comment body as HTML. Mentions go inside the HTML. A literal < or > in the text must be sent as &lt; / &gt;.

Minimum string length: 1
ConversationId
string | null

Identifier of the conversation to post into. Required for Side Conversation and Approval, and rejected for Public and Private, which are the ticket's main thread.

CreatedByName
string | null

Display name to show the comment as. The comment is still recorded as API-authored — a name cannot be used to post as a specific real user. Omitted or blank, it is recorded as API.

CreatedOn
string<date-time> | null

Backdate the comment's timestamp — for importing ticket history from another system. Must not be in the future or earlier than the ticket's own CreatedOn. Omit to use the current time.

When supplied, the ticket's UpdatedOn becomes the later of its current value and this timestamp, so importing older history does not push the ticket to the top of an updatedOn-sorted list.

Send only when importing history. A record with this field set sends no emails or notifications.

Attachments
object[]

Files to attach, as returned by the attachment upload endpoint.

الاستجابة

OK

StatusCode
enum<integer>
الخيارات المتاحة:
100,
101,
102,
103,
200,
201,
202,
203,
204,
205,
206,
207,
208,
226,
300,
301,
302,
303,
304,
305,
306,
307,
308,
400,
401,
402,
403,
404,
405,
406,
407,
408,
409,
410,
411,
412,
413,
414,
415,
416,
417,
421,
422,
423,
424,
426,
428,
429,
431,
451,
500,
501,
502,
503,
504,
505,
506,
507,
508,
510,
511
IsSuccess
boolean
Data
object
DataContext
object | null
مثال:

null

Notifications
object[]