curl --request POST \
--url https://staging.api.us.aptlydone.com/decision/v1/decisions/unlink-records \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"documentId": "105fa115-52d0-4466-baff-740447a60774",
"userId": "105fa115-52d0-4466-baff-740447a60795",
"recordData": [
{
"id": "105fa115-52d0-4466-baff-740447a60795",
"type": "Decision/Delegation"
}
]
}'
{
"statusCode": 200,
"timestamp": "2025-06-24T10:47:32.804Z",
"message": "Success",
"data": {
"deletedCount": 5
}
}
curl --request POST \
--url https://staging.api.us.aptlydone.com/decision/v1/decisions/unlink-records \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"documentId": "105fa115-52d0-4466-baff-740447a60774",
"userId": "105fa115-52d0-4466-baff-740447a60795",
"recordData": [
{
"id": "105fa115-52d0-4466-baff-740447a60795",
"type": "Decision/Delegation"
}
]
}'
{
"statusCode": 200,
"timestamp": "2025-06-24T10:47:32.804Z",
"message": "Success",
"data": {
"deletedCount": 5
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Linked records successfully deleted
The response is of type object
.