Skip to main content
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
documentId
string
required

Document ID

Example:

"105fa115-52d0-4466-baff-740447a60774"

userId
string
required

User ID

Example:

"105fa115-52d0-4466-baff-740447a60795"

recordData
object[]
required

Response

Linked records successfully deleted

statusCode
number
required

HTTP Status code

Example:

200

timestamp
string
required

Timestamp of the response

Example:

"2025-06-24T10:47:32.804Z"

message
string
required

Response message

Example:

"Success"

data
object
required

Response data