POST
/
v1
/
decisions
/
unlink-records
Unlink document
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
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Linked records successfully deleted

The response is of type object.