Delete users

Learn how to delete users

Description

The following route can be used to delete your users.

Endpoint

DELETE https://sentry.aleno.ai/users

Query parameters

If you delete a user, all its associated subscriptions will be automatically deleted.

Payload

No payload.

CURL example

curl -X DELETE \
  'https://sentry.aleno.ai/users?ids=4272ce81-df38-4232-9b4d-46ad4f40d4f9,f188a27c-3e87-44dd-8930-7fc16e3eb2ad' \
  -H 'accept: application/json' \
  -H 'Authorization: YOUR_API_KEY'

Result

Returns list of User objects corresponding to deleted users.

{
  "data": [
    {
      "id": "4272ce81-df38-4232-9b4d-46ad4f40d4f9",
      "accountId": "938862f0-f629-413d-bc88-a7a4fe54e2ad",
      "userName": "Bob",
      "userContext": "bob_context",
      "createdAt": "2024-03-18T14:45:14.747Z",
      "updatedAt": "2024-03-18T14:45:14.747Z"
    },
    {
      "id": "f188a27c-3e87-44dd-8930-7fc16e3eb2ad",
      "accountId": "938862f0-f629-413d-bc88-a7a4fe54e2ad",
      "userName": "Charlie",
      "userContext": "charlie_context",
      "createdAt": "2024-03-18T14:45:14.747Z",
      "updatedAt": "2024-03-18T14:45:14.747Z"
    }
  ]
}

Last updated