POST api/Tickets/AddRelatedTickets
Adds relation between tickets.
Request Information
URI Parameters
None.
Body Parameters
AddRelatedTicketsPostName | Description | Type | Additional information |
---|---|---|---|
TicketId |
The main ticket. |
integer |
None. |
RelatedTicketsIds |
Related ticket IDs. If you use the tree relation, the tickets will added as children, so the main ticket will be their parent. |
Collection of integer |
None. |
RelationType |
Type of the relation |
TicketRelationTypeEnum |
None. |
Request Formats
application/json, text/json
Sample:
{ "TicketId": 1, "RelatedTicketsIds": [ 2, 1 ], "RelationType": 1 }
application/xml, text/xml
Sample:
<AddRelatedTicketsPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <RelatedTicketsIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>2</d2p1:int> <d2p1:int>1</d2p1:int> </RelatedTicketsIds> <RelationType>TwoWayRelation</RelationType> <TicketId>1</TicketId> </AddRelatedTicketsPost>
Response Information
Resource Description
IHttpActionResultNone.