curl --request POST \
--url https://api.royalti.io/user/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
]
}
'{
"message": "Done.",
"processedCount": 2,
"failedDeletions": []
}/user/bulk/delete
curl --request POST \
--url https://api.royalti.io/user/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"<string>"
]
}
'{
"message": "Done.",
"processedCount": 2,
"failedDeletions": []
}/user/bulk/delete endpoint allows administrators to delete multiple users in bulk by providing a list of user IDs.
Method:| Parameter | Type | Description |
|---|---|---|
| ids | array | An array of user IDs to be deleted in bulk. |
const response = await fetch('https://api.royalti.io/user/bulk/delete', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"ids": [
{}
]
})
});
const data = await response.json();
console.log(data);