...
Response Class
Parameters
Response Messages
PUT/ Ticket
Response Class
Parameters
Response Messages
...
Response Class
Parameters
Response Messages
...
Response Class
Parameters
...
In this article you will learn how to retrieve, update, and create ticket such as Task, Problem, Service request, and Incident using the REST API.
Info | ||
---|---|---|
| ||
The Ticket Controller is useful when searching for a ticket when you don't know the ticket type or retrieving a list of tickets of different types. If you are working with only one ticket type we recommend that you use that specific controller such as Change Request Controller, Incident Controller, Problem Controller or Service Request Controller |
GET- Ticket
To retrieve ticket information, you need to specify the required parameters in Swagger. To learn how to retrieve information using GET method, refer to Incident Controller
PUT- Ticket
To update ticket information, you need to specify the required parameters in Swagger. To learn how to edit the existing information using PUT method, perform the following.:
- Click PUT to edit the ticket information.
- Specify the following details in the Parameters section.:
- ISM application URL
- User authtoken
- Slice token
- Web service user name and password - Click the Example Value text box. The operations displayed in the text box will be copied to the Ticket text box.
- Click Try it out.
The following information is displayed in the Example Value box.
Valid Ticket Attribute { |
---|
GET- Ticket/recent
To retrieve recent ticket information, you need to specify the required parameters in Swagger.:
- Click GET to retrieve recent ticket information
- Specify the following details in the Parameters section.:
- ISM application URL
- User authtoken
- Slice token
- Web service user name and password
- Specify the duration up to which period the data must be displayed. - Click Try it out.
Info |
---|
To filter the tickets, pass the filter criteria in Query Parameters. For example, to view recent tickets for a specific 'Affected service' use $filter=(AffectedService=='Test') |
GET- Ticket/{id}
To retrieve a specific ticket information, you need to specify the required parameters in Swagger. To learn how to retrieve information using GET method, refer to REST API- GET Method