POST api/Tickets/WorkflowPush
Pushes forward Ticket's state.
Request Information
URI Parameters
None.
Body Parameters
WorkflowPushPostName | Description | Type | Additional information |
---|---|---|---|
TicketId |
(Required TicketId OR TicketREF) The ID of the ticket |
integer |
None. |
TicketREF |
(Required TicketId OR TicketREF) The reference ID of the ticket |
string |
None. |
Action |
(Required) Right workflow action for the Ticket's state is needed. Get a list of available actions using GetTicket method. |
TicketActionEnum |
None. |
UserProviderKey |
Optional parameter. Only some Actions need to specify this parameter. These are IncidentAssign, IncidentAssignOther, IncidentFunctionEscalate, ServiceRequestAssign, ServiceRequestAssignOther, ProblemAssign and ChangeAssign. It is also optional for the actions IncidentWaitForThirdParty and ServiceRequestWaitForThirdParty. |
string |
None. |
ServiceId |
Optional parametr. Only some Actions need to specify this parameter. There are TicketConvertToIncident, TicketConvertToServiceRequest. |
integer |
None. |
CustomerId |
Optional parameter for the actions IncidentWaitForThirdParty and ServiceRequestWaitForThirdParty. It is the customer the ticket is waiting for in the Waiting for a third party state. |
integer |
None. |
Note |
Optional parameter for the actions IncidentWaitForThirdParty and ServiceRequestWaitForThirdParty. It is the note of the ticket that is in the Waiting for a third party state. |
string |
None. |
Request Formats
application/json, text/json
{ "TicketId": null, "TicketREF": "INC-000047", "Action": 207, "UserProviderKey": null, "ServiceId": null, "CustomerId": null, "Note": null }
application/xml, text/xml
<WorkflowPushPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <Action>IncidentSuspend</Action> <CustomerId i:nil="true" /> <Note i:nil="true" /> <ServiceId i:nil="true" /> <TicketId i:nil="true" /> <TicketREF>INC-000047</TicketREF> <UserProviderKey i:nil="true" /> </WorkflowPushPost>
Response Information
Resource Description
HttpStatusCode 200 OK or 400 BadRequest with Message.
WorkflowPushResultName | Description | Type | Additional information |
---|---|---|---|
TicketREF |
Reference ID of the Ticket. Useful if the Ticket has been converted. |
string |
None. |
TicketId |
The unique stable Identifier of the ticket. |
integer |
None. |
Response Formats
application/json, text/json
{ "TicketREF": "INC-000015", "TicketId": 0 }
application/xml, text/xml
<WorkflowPushResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results"> <TicketId>0</TicketId> <TicketREF>INC-000015</TicketREF> </WorkflowPushResult>