Skip to main content

List Change Approvals

Retrieve a paginated list of all approvals linked to a module object (Change, Incident, Service Request, or other supported module).

URL: GET /api/v1/change/{change_id}/approval

Example: GET http://172.16.15.185/api/v1/change/13/approval

Path Variables

VariableTypeDescription
{ref_id}longID of the Change record.

Request Headers

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

Example Request

curl --location 'http://172.16.15.185/api/v1/change/13/approval' \
--header 'Authorization: Apikey wGjCygm6LvI7J1LT%40HHW%2Bs0ighXw7TeP5biyBL1uvBkzRnKMidKLUsz%2FIHEIn9w%3D%3D'

Example Response (200 OK)

{
"objectList": [
{
"id": 117,
"subject": "Approval Required for - CHG-13",
"description": null,
"status": "pending",
"decisionRule": null,
"totalStages": 1,
"currentStageNumber": 1,
"makerCheckerApproval": false,
"refId": 13,
"model": "change",
"createdAt": 1786691665020,
"updatedAt": 1786691665030
}
],
"totalCount": 1
}

Response Fields

FieldTypeDescription
objectListarrayList of approval summary objects.
totalCountintTotal number of approvals for the object.
idlongUnique approval ID. Use this value in subsequent endpoints.
subjectstringApproval subject line.
descriptionstringApproval description text.
statusstringOverall approval status: pending, approved, rejected, or cancelled.
decisionRulestringDecision logic of the active stage: unanimous, majority, or any_one.
totalStagesintTotal number of stages defined in the approval.
currentStageNumberintCurrently active stage number. Returns 0 if the approval has not started.
makerCheckerApprovalbooleantrue if this is a maker-checker approval.
refIdlongID of the parent module object.
modelstringModule name of the parent object (for example, change).
createdAtlong or stringCreation timestamp. Epoch milliseconds by default; formatted string when ?pretty=true is set.
updatedAtlong or stringLast update timestamp. Epoch milliseconds by default; formatted string when ?pretty=true is set.
Stage Details Not Included

This endpoint returns approval summaries only. To retrieve stages and approvers, call GET Approval Detail with the id returned here.

Error Responses

ScenarioHTTP StatusWhen It Occurs
Invalid {module} value400 Bad Request{module} does not match a known module identifier.
Invalid {ref_id} (less than or equal to 0)400 Bad RequestA negative or zero object ID was provided.
Unauthorized401 UnauthorizedSession expired or no valid credentials were provided.