PATCH Update a Service Request
URL: {{server-url}}/api/v1/request/{{service-request-Id}}
You can update the details of an existing service request ticket by calling the above endpoint with the service request ID. You have to pass the following key-values:
Header
Key | Description |
---|---|
Authorization | Bearer/API Key {access token obtained after authorization} |
Content-Type | application/json |
Body
Key | Value Type | Description |
---|---|---|
requester* | String | Requester name. |
serviceName* | String | Name of the service. |
serviceCategoryName* | String | Name of the service category. |
impactName | String | Describes the effect of the Request. Possible values are: Low, On User , On department, Or On Business. |
priorityName | String | Shows the importance of the Request. Possible values are: Low, Medium, High, or Urgent. |
urgencyName | String | Marks the request as urgent. Possible values are: Low, Medium, High, or Urgent. |
departmentName | String | Additional information about the ticket. |
locationName | String | Name of the Location where the service request took place. Note that Location Must Exist with same name. |
vendorName | String | Additional information about the ticket. |
customField | MAP:{key: STRING, value: OBJECT} | This key is related to custom fields. Example “customField”: {“New Dropdown”: “1”, “New Number”: 110.1,”New Text Area”: “a11”, “New Text Input”: “111”} |
Example (Request & Response)
Request
curl --location --request PATCH 'http://172.16.12.173/api/v1/request/11' \
--header 'Authorization: Apikey cuiCoIvEWMwiAa4T%40D1F5M7cRAQnXW0Wmn4D3HrdQuMYqGcVSH5oWNH4V4%2F11R%2BgTM8J2KiLNdw%3D%3D' \
--header 'Content-Type: application/json' \
--data '{
"customField": {
"Source File Path": "pep by postman",
"Destination File Path": "add your comment",
"File Restore Initiation Date": 1744020668073,
"New Datetime": 1744024937023,
"New Text Input": "File Restore",
"New Multi-Select Dropdown": [
"W2",
"W5"
]
},
"statusName": "Pending",
"subject": "File Restoration Request",
"description": "For restoring file with its original version saved on a backup server",
"impactName": "On Business",
"priorityName": "High",
"urgencyName": "Urgent",
"supportLevel": "tier3"
}'
Response
{
"id": 11,
"name": "SR-7",
"createdTime": 1745230723733,
"updatedTime": 1745497674442,
"customField": {
"Laptop Specifications": ""
},
"statusName": "Pending",
"createdByName": "adam",
"subject": "File Restoration Request",
"requesterName": "adam",
"fileAttachments": [],
"requesterEmail": "adam@motadata.com",
"description": "For restoring file with its original version saved on a backup server",
"tags": [],
"impactName": "On Business",
"priorityName": "High",
"urgencyName": "Urgent",
"updatedByName": "adam",
"ccEmailSet": [],
"source": "Technician Portal",
"spam": false,
"supportLevel": "tier3"
}