Skip to main content
Version: 8.4

POST Search Change

URL: {{server-url}}/api/v1/change/search/byqual

In order to search a change request, you have to call the above endpoint with the following key-values:

Header

KeyDescription
AuthorizationBearer {access token obtained after authorization}
Content-Typeapplication/json

Body

KeyDescription
typevalue

Example (Request & Response)

Request

curl --location 'https://172.16.12.135/api/v1/change/search/byqual' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbl9zc29faWQiOjAsInVzZXJfbmFtZSI6ImpvaG5AbW90YWRhdGEuY29tIiwic2NvcGUiOlsib3RoZXItYXBpLXNjb3BlIl0sImxvZ2luX3NvdXJjZSI6Im5vcm1hbF9sb2dpbiIsImV4cCI6MTY4NjEzNzQ4NywibG9naW5fbXNwX3BvcnRhbF9pZCI6MCwianRpIjoiOGExMDc1MTEtY2YzMC00ODcxLWIzZmQtZjY1NmJhNDUyZTRiIiwiY2xpZW50X2lkIjoiUG9zdG1hbkludGVncmF0aW9uLWNsaWVudCIsInRlbmFudElkZW50aWZpZXIiOiJhcG9sbyJ9.RJg1Xb7rVs6s-H6qItcZmwkLAaV95AgbaY813PTn4U7fDz7GV0gpVsMgWAcHOnSV9J-KGsdyw2vHf4rIfH3h8dt3SrJq8B7TPpMNoccXCarBEIGxxMHAKxs9cPcuw7cNY2K5NtfKj8voRl0vRzBHxuQS8h7J6hYnLcOFIMK6B-hZQKBbYL7lgOY86l22ghjcyY9pzwaxjNgtD922f3ru998Vyh_shJOiIb12QEqYxXzle-hxrOkB4hF_KVoNXi0w3WhO09i_aOX16eAfYo2neXd-hZ2TyFqQsKGNy83ZDkwCeeV2Y6Yxck_tMTBVrH6YaAc4NDtEHpA591vImBWtwg' \
--header 'Content-type: application/json' \
--data '{
"qualDetails": {
"type": "FlatQualificationRest",
"quals": [
{
"type": "RelationalQualificationRest",
"leftOperand": {
"type": "DbOperandRest",
"key": "id"
},
"operator": "not_in",
"rightOperand": {
"type": "ValueOperandRest",
"value": {
"type": "ListLongValueRest",
"value": [
90
]
}
}
}
]
}
}'

Response

{
"objectList": [
{
"id": 2,
"companyName": "Mindarray Systems",
"name": "CHG-2",
"subject": "Laptop Battery Replacement",
"description": "The laptop was often getting shut down. So after analysing the issue, the problem was detected with the battery. Hence, need to change the battery of the laptop.",
"createdTime": 1685516057180,
"updatedTime": 1685516057180,
"requesterEmail": "john@motadata.com",
"requesterName": "john",
"priorityName": "Low",
"urgencyName": "Low",
"impactName": "Low",
"riskType": "Low",
"changeType": "Significant",
"categoryName": "Hardware",
"locationName": "Asia",
"tags": [],
"departmentName": "IT",
"technicianGroupName": "IT",
"assigneeEmail": "john@motadata.com",
"reason": "Maintenance Update",
"startDate": 1685515380000,
"endDate": 1686120180000,
"fileAttachments": [],
"statusName": "Requested",
"vendorName": "HP Services"
},
{
"id": 1,
"name": "CHG-1",
"subject": "Need to change the Laptop",
"description": "",
"createdTime": 1684928778516,
"updatedTime": 1684928778516,
"requesterEmail": "john@motadata.com",
"requesterName": "john",
"priorityName": "Low",
"urgencyName": "Low",
"impactName": "Low",
"riskType": "Low",
"tags": [],
"startDate": 1684928700000,
"endDate": 1685533500000,
"fileAttachments": [],
"statusName": "Requested"
}
],
"totalCount": 2
}