Skip to content

Delete AML searches linked to a profile

Request

Deletes AML searches from a profile by profile Id and search Id. The searches themselves are deleted, not only unlinked from the profile, so they can't be retrieved or linked to a profile again afterwards.

Security
bearerToken
Path
profileIdstring, (uuid)required

Id of a profile.

Example:9a7ae0c8-f473-4ab6-8dbb-03fc061630cc
Headers
X-Team-Idstring, (uuid)

Optional. The team to work in, using a team id from List Teams. If left out, the default team is used. Records created in a team can only be seen by sending that team's id. A team id that doesn't exist, or a team being deleted, is rejected with 404 Team Not Found.

Example:6b78aed4-9ba6-441b-80b9-df9bea3b7c97
Bodyapplication/jsonrequired

The ids of the searches to delete from the profile.

searchIdsArray of strings

List of searches to de-link from a profile

Example:
[ "1255eebd-7f75-4163-a8b4-ab95e8f7be74" ]
curl -i -X DELETE \
  https://connect.sandbox.creditsafe.com/v1/compliance/kyc-protect/profiles/9a7ae0c8-f473-4ab6-8dbb-03fc061630cc/searches \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-Team-Id: 6b78aed4-9ba6-441b-80b9-df9bea3b7c97' \
  -d '{
    "searchIds": [
      "0ceca33f-fd93-440f-ad50-7c7cc51a5f93"
    ]
  }'

Responses

Success

Bodyapplication/json
failedArray of objects

The searches that couldn't be deleted, each with the reason.

successfulArray of strings, (uuid)

The search ids that were deleted.

correlationIdstring

A unique ID assigned to this request.

Response
{ "successful": [ "0ceca33f-fd93-440f-ad50-7c7cc51a5f93" ], "failed": [], "correlationId": "ca34ca38-edd8-4ab3-8930-51ba2f0432f9" }