POST api/Tickets/CloneTicket
Can clone the ticket. Only the administrator, manager, the solver can do it
Request Information
URI Parameters
None.
Body Parameters
CloneTicketPostName | Description | Type | Additional information |
---|---|---|---|
TicketId |
id of the cloned ticket |
integer |
None. |
NewSubject |
subject for clone |
string |
None. |
PublicMessages |
True if the method should clone the public messages |
boolean |
None. |
PublicMessageAttachments |
True if the method should clone the public message attachments. The value is used only if PublicMessages is set on true. |
boolean |
None. |
InternalMessages |
True if the method should clone the internal messages |
boolean |
None. |
InternalMessageAttachments |
True if the method should clone the internal message attachments. The value is used only if InternalMessages is set on true. |
boolean |
None. |
ForwardedMessages |
True if the method should clone the forwarded messages |
boolean |
None. |
ForwardedMessageAttachments |
True if the method should clone the forwarded message attachments. The value is used only if ForwardedMessages is set on true. |
boolean |
None. |
EmailMessages |
True if the method should clone the email messages |
boolean |
None. |
EmailMesssageAttachments |
True if the method should clone the email message attachments. The value is used only if EmailMessages is set on true. |
boolean |
None. |
CopyCategoryItems |
True if the method should clone the categories |
boolean |
None. |
CopyCalendarEvents |
True if the method should clone the calendar events |
boolean |
None. |
CopyTags |
True if the method should clone the tags |
boolean |
None. |
CopyTrackTimeRecords |
True if the method should clone the track time records |
boolean |
None. |
CopyTasks |
True if the method should clone the tasks |
boolean |
None. |
CopyInvitations |
True if the method should clone the invitations |
boolean |
None. |
CopyCustomForms |
True if the method should clone the custom forms |
boolean |
None. |
CopyRelations |
True if the method should clone the relations |
boolean |
None. |
Request Formats
application/json, text/json
{ "TicketId": 1, "NewSubject": "sample string 2", "PublicMessages": true, "PublicMessageAttachments": true, "InternalMessages": true, "InternalMessageAttachments": true, "ForwardedMessages": true, "ForwardedMessageAttachments": true, "EmailMessages": true, "EmailMesssageAttachments": true, "CopyCategoryItems": true, "CopyCalendarEvents": true, "CopyTags": true, "CopyTrackTimeRecords": true, "CopyTasks": true, "CopyInvitations": true, "CopyCustomForms": true, "CopyRelations": true }
application/xml, text/xml
<CloneTicketPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts.Tickets"> <CopyCalendarEvents>true</CopyCalendarEvents> <CopyCategoryItems>true</CopyCategoryItems> <CopyCustomForms>true</CopyCustomForms> <CopyInvitations>true</CopyInvitations> <CopyRelations>true</CopyRelations> <CopyTags>true</CopyTags> <CopyTasks>true</CopyTasks> <CopyTrackTimeRecords>true</CopyTrackTimeRecords> <EmailMessages>true</EmailMessages> <EmailMesssageAttachments>true</EmailMesssageAttachments> <ForwardedMessageAttachments>true</ForwardedMessageAttachments> <ForwardedMessages>true</ForwardedMessages> <InternalMessageAttachments>true</InternalMessageAttachments> <InternalMessages>true</InternalMessages> <NewSubject>sample string 2</NewSubject> <PublicMessageAttachments>true</PublicMessageAttachments> <PublicMessages>true</PublicMessages> <TicketId>1</TicketId> </CloneTicketPost>
Response Information
Resource Description
CloneTicketResultName | Description | Type | Additional information |
---|---|---|---|
TicketREF |
Reference ID of the newly created Ticket |
string |
None. |
TicketId |
The unique identifier of the newly created Ticket |
integer |
None. |
Response Formats
application/json, text/json
{ "TicketREF": "sample string 1", "TicketId": 2 }
application/xml, text/xml
<CloneTicketResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results"> <TicketId>2</TicketId> <TicketREF>sample string 1</TicketREF> </CloneTicketResult>