POST/GET Search Change
Search by ID
Method: POST
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
| Key | Description |
|---|---|
| Authorization | Bearer {access token obtained after authorization} |
| Content-Type | application/json |
Body
| Key | Description |
|---|---|
| type | value |
Example (Request & Response)
Request
curl --location 'http://172.16.11.160/api/v1/change/search/byqual' \
--header 'Authorization: Apikey Pu%2FuABfvm1jV2B7R%40KfPtooI8HtJPzVRVQ%2FeFU%2Fhb4sRry2YbhGpIu7m9wXAWTxcouc1J' \
--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,
"name": "CHG-2",
"createdTime": 1754571704922,
"updatedTime": 1754571747776,
"assigneeEmail": "jerry@motadata.com",
"statusName": "Closed",
"createdByName": "Jerry",
"subject": "Need to Change the RAM",
"requesterName": "Jerry",
"fileAttachments": [],
"requesterEmail": "jerry@motadata.com",
"description": "Need to Change the RAM",
"tags": [],
"impactName": "On Users",
"priorityName": "Low",
"urgencyName": "Low",
"updatedByName": "Jerry",
"resolutionTimeDuration": "42 sec",
"riskType": "Low",
"startDate": 1754571660000,
"endDate": 1755176460000,
"approvalStatus": "pre_approved"
},
{
"id": 1,
"name": "CHG-1",
"createdTime": 1754564807817,
"updatedTime": 1754570135189,
"assigneeEmail": "jerry@motadata.com",
"statusName": "Closed",
"createdByName": "Jerry",
"subject": "Need to Change the RAM",
"requesterName": "Jerry",
"fileAttachments": [],
"requesterEmail": "jerry@motadata.com",
"description": "Need to Change the RAM",
"tags": [],
"impactName": "Low",
"priorityName": "Low",
"urgencyName": "Low",
"updatedByName": "Jerry",
"riskType": "Low",
"startDate": 1754564760000,
"endDate": 1755169560000,
"approvalStatus": "pre_approved"
}
],
"totalCount": 2
}
Search by Logon Name or Email Address
Method: GET
URL: {{server-url}}/api/v1/change/search/byRequester?requester={logon-name/email-address}&archived=true
Example: http://{{server-url}}/api/v1/change/search/byRequester?requester=jerry&archived=true
In order to search a change request, you have to call the above endpoint with the following key-values:
Header
| Key | Description |
|---|---|
| Authorization | Bearer {access token obtained after authorization} |
| Content-Type | application/json |
Body
| Key | Description |
|---|---|
| type | value |
Example (Request & Response)
Request
curl --location 'http://172.16.11.157/api/v1/change/search/byRequester?requester=jerry&archived=true' \
--header 'Authorization: Apikey Rn6mSF%2FA%2FBZ2qTQx%405dSx0Y%2F2LDa39stgyJk7V0Jb9me7YbIPl6Z4FR8HKVUrw6sFwIuMIg%3D%3D' \
--header 'Content-Type: application/json'
Response
{
"objectList": [
{
"id": 1,
"name": "CHG-1",
"createdTime": 1754642708352,
"updatedTime": 1754644545994,
"assigneeEmail": "jerry@motadata.com",
"statusName": "In Progress",
"createdByName": "Jerry",
"subject": "test st",
"requesterName": "Jerry",
"fileAttachments": [],
"requesterEmail": "jerry@motadata.com",
"description": "",
"tags": [],
"impactName": "Low",
"priorityName": "Low",
"urgencyName": "Low",
"updatedByName": "jerry",
"riskType": "Low",
"changeType": "Standard",
"startDate": 1753778640000,
"endDate": 1756457040000
},
{
"id": 2,
"name": "CHG-2",
"createdTime": 1754642798314,
"updatedTime": 1754644636841,
"assigneeEmail": "jerry@motadata.com",
"statusName": "In Progress",
"createdByName": "Jerry",
"subject": "cd",
"requesterName": "Jerry",
"fileAttachments": [],
"requesterEmail": "jerry@motadata.com",
"description": "",
"tags": [],
"impactName": "Low",
"priorityName": "Medium",
"urgencyName": "Medium",
"updatedByName": "jerry",
"riskType": "Medium",
"changeType": "Normal",
"startDate": 1753692360000,
"endDate": 1755852360000,
"approvalStatus": "approved"
},
{
"id": 3,
"name": "CHG-3",
"createdTime": 1754642972871,
"updatedTime": 1754644695686,
"assigneeEmail": "jerry@motadata.com",
"statusName": "Pending",
"createdByName": "Jerry",
"subject": "em",
"requesterName": "Jerry",
"fileAttachments": [],
"requesterEmail": "jerry@motadata.com",
"description": "",
"tags": [],
"impactName": "On Business",
"priorityName": "Urgent",
"urgencyName": "Urgent",
"updatedByName": "jerry",
"riskType": "High",
"changeType": "Emergency",
"startDate": 1753692540000,
"endDate": 1755247740000,
"approvalStatus": "pending"
},
{
"id": 4,
"name": "CHG-4",
"createdTime": 1754644794321,
"updatedTime": 1754645411766,
"statusName": "Requested",
"createdByName": "Jerry",
"subject": "asdf",
"requesterName": "Jerry",
"fileAttachments": [],
"requesterEmail": "jerry@motadata.com",
"description": "",
"tags": [],
"impactName": "Low",
"priorityName": "Low",
"urgencyName": "Low",
"updatedByName": "Jerry",
"riskType": "Low",
"startDate": 1754039940000,
"endDate": 1756372740000
},
{
"id": 7,
"name": "CHG-7",
"createdTime": 1754654609293,
"updatedTime": 1754654633053,
"assigneeEmail": "jerry@motadata.com",
"statusName": "Closed",
"createdByName": "Jerry",
"subject": "Need to Change the RAM",
"requesterName": "Jerry",
"fileAttachments": [],
"requesterEmail": "jerry@motadata.com",
"description": "Need to Change the RAM",
"tags": [],
"impactName": "Low",
"priorityName": "Low",
"urgencyName": "Low",
"updatedByName": "Jerry",
"resolutionTimeDuration": "23 sec",
"riskType": "Low",
"startDate": 1754654520000,
"endDate": 1755864120000,
"approvalStatus": "pre_approved"
}
],
"totalCount": 5
}
note
The "resolutionTimeDuration" field becomes visible only after an SLA is applied and the Change Request is closed.