curl --request GET \
--url https://staging.api.us.aptlydone.com/decision/v1/delegations/{delegationId}/roles/count \
--header 'Authorization: Bearer <token>'
{
"statusCode": 200,
"timestamp": "2025-06-24T10:47:32.804Z",
"message": "Success",
"data": {
"roleCount": "5"
}
}
curl --request GET \
--url https://staging.api.us.aptlydone.com/decision/v1/delegations/{delegationId}/roles/count \
--header 'Authorization: Bearer <token>'
{
"statusCode": 200,
"timestamp": "2025-06-24T10:47:32.804Z",
"message": "Success",
"data": {
"roleCount": "5"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Role count fetch successfully
The response is of type object
.