user_ids
in the request body to identify which users should be deleted.curl --location -g --request DELETE 'https:///v2/api/user/batch' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_ids": [
192,
77
]
}'
{
"success": true,
"message": "Users deleted successfully.",
"data": [
{
"id": 4,
"email": "user@example.com",
"is_staff": false,
"is_superuser": false,
"is_active": false,
"date_joined": "2024-01-22T12:33:50.918362Z",
"first_name": "user",
"last_name": "user",
"organization": {
"id": 1,
"org_name": "Data Science Dojo",
"domain": "datasciencedojo.com",
"org_logo_url": "string",
"org_icon_url": "string",
"is_deleted": false,
"created_by": "System",
"created_on": "2024-01-20T01:32:56.659642Z",
"modified_by": "user@example.com",
"modified_on": "2024-01-20T01:32:56.659663Z"
}
}
]
}