Bulk Delete Users Action
Delete up to 500 users in one call, taking each out of every team it belongs to. Same authorization as /user/delete: proxy admins may delete anyone, org admins only users inside organizations they administer. Unknown body fields are a 422.
data holds one result per requested user_id, in request order. A row is success: false with an error when the id is unknown, repeated in the request, or outside the caller's scope. Rows that pass those checks are deleted together, in one transaction, so either all of them go or none does.
Example curl:
curl --location 'http://0.0.0.0:4000/management/v1/users/bulk_delete' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{"user_ids": ["user-1", "user-2"]}'
Headers
Who the caller is acting for; recorded on the audit log entries this call writes.
Who the caller is acting for; recorded on the audit log entries this call writes.
Request body
Response
Successful Response
Changes
Changed in 1 of the 52 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○