GET
/
v1
/
delegations
/
{delegationHistoryId}
/
roles-history
Get delegation roles history
curl --request GET \
  --url https://staging.api.us.aptlydone.com/decision/v1/delegations/{delegationHistoryId}/roles-history \
  --header 'Authorization: Bearer <token>'
{
  "statusCode": 200,
  "timestamp": "2025-06-24T10:47:33.420Z",
  "message": "Success",
  "data": {
    "page": 1,
    "limit": 10,
    "total": 100,
    "data": [
      {
        "id": "14f5a115-52d0-4466-baff-740447a60774",
        "delegationId": "2sf90da4-0634-40b9-abf5-6e97a222rds8",
        "delegationRoleId": "7sf90da4-0634-40b9-abf5-6e97a222ttt8",
        "designeeRecipientType": "PERSONNEL_IN_POSITION",
        "isAutoIssue": false,
        "updatedAt": "2025-03-05T11:49:50.577Z",
        "createdAt": "2025-03-05T11:49:50.577Z",
        "roleDesignees": [],
        "roleDetails": {
          "id": "a97bbbc4-1415-4131-81fb-761fd111f370",
          "roleId": "10df93d6-4e88-40f9-b46a-1676017451ba",
          "roleName": "Informed",
          "roleStatus": "ASSIGNED",
          "roleRequirement": "Lorem ipsum is a dummy requirement",
          "isCascade": false,
          "isDeleted": false,
          "createdAt": "2025-03-19T14:45:37.301Z",
          "updatedAt": "2025-03-19T14:45:37.301Z"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

delegationHistoryId
string
required

Query Parameters

page
number

Page number

Required range: x >= 1
Example:

1

limit
number

Number of items per page

Required range: 1 <= x <= 100
Example:

10

role
string[]

Role of role Delegation.

status
string[]

Status of role Delegation.

sortBy
enum<string>

Criteria for sorting delegation role list

Available options:
roleName,
roleStatus,
roleRequirement,
updatedAt
sortOrder
enum<string>

Criteria for order delegation role list

Available options:
asc,
desc

Response

200 - application/json

Roles list retrieved successfully for Delegation history

The response is of type object.