curl --request PATCH \
--url https://staging.api.us.aptlydone.com/decision/v1/delegations/{delegationId}/roles/{roleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"designeeRecipientType": "PERSONNEL_IN_POSITION",
"isAutoIssue": false,
"roleDesignees": [],
"RoleStatus": "ASSIGNED",
"roleRequirement": "Lorem ipsum is a dummy requirement",
"tenantId": "L14f5a115-52d0-4466-baff-740447a60774",
"isCascade": false,
"roleId": "14f5a115-52d0-4466-baff-740447a60774"
}'
{
"statusCode": 200,
"timestamp": "2025-06-24T10:47:32.804Z",
"message": "Success",
"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"
}
}
}
curl --request PATCH \
--url https://staging.api.us.aptlydone.com/decision/v1/delegations/{delegationId}/roles/{roleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"designeeRecipientType": "PERSONNEL_IN_POSITION",
"isAutoIssue": false,
"roleDesignees": [],
"RoleStatus": "ASSIGNED",
"roleRequirement": "Lorem ipsum is a dummy requirement",
"tenantId": "L14f5a115-52d0-4466-baff-740447a60774",
"isCascade": false,
"roleId": "14f5a115-52d0-4466-baff-740447a60774"
}'
{
"statusCode": 200,
"timestamp": "2025-06-24T10:47:32.804Z",
"message": "Success",
"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"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Role delegations updated successfully
The response is of type object
.