curl --request POST \
--url https://apix.us.amity.co/api/v1/users/bulk-delete/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form 'deleteOptions={"deleteAll":true,"markMessageDeleted":false,"hardDeletePost":false,"hardDeleteComment":false}'{
"id": "507f1f77bcf86cd799439011"
}Create a bulk delete job to delete multiple users. This endpoint accepts a CSV file containing user IDs and creates deletion jobs for processing. Requires admin permissions.
curl --request POST \
--url https://apix.us.amity.co/api/v1/users/bulk-delete/jobs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form 'deleteOptions={"deleteAll":true,"markMessageDeleted":false,"hardDeletePost":false,"hardDeleteComment":false}'{
"id": "507f1f77bcf86cd799439011"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bulk delete job created successfully (Accepted)
Unique identifier for the bulk delete job
"507f1f77bcf86cd799439011"