Update Ticket
This endpoint updates ticket data.
This endpoint requires a arry of the following JSON body to be posted.
Path Param |
Type |
Required |
Description |
ticketId |
int |
Required |
Unique identifier for ticket |
Query Param |
Type |
Required |
Description |
updatedBy |
string |
Required |
Name of the user who is updating the ticket |
JSON Prop |
Type |
Required |
Description |
value |
string |
Required |
Value of the field |
path |
string |
Required |
|
op |
string |
Required |
|
Output
This endpoint returns an HTTP response indicating success (200) with lockid or failure (500).
Example
Request
| POST /v1/tickets/99?updatedBy=Tier2User1
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | [
{
"op": "test",
"path": "/resolutionType",
"value": 1
},
{
"op": "replace",
"path": "/resolutionType",
"value": 0
},
{
"op": "test",
"path": "/ticketStatus",
"value": 0
},
{
"op": "replace",
"path": "/ticketStatus",
"value": 2
}
]
|
Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | {
"ticketId": 55,
"fiTicketId": "Test 123",
"customerId": 12896,
"ticketStatus": {
"id": 2,
"name": "Closed"
},
"comment": "Test comments",
"cardlyticsComment": null,
"goodwillAmount": null,
"createDt": "2021-09-10T18:35:56.013",
"createdBy": "Malt Tier2User1",
"updateDt": null,
"updatedBy": null,
"resolutionType": {
"id": 0,
"name": "No Credit: Not eligible for reward"
}
}
|