curl -X DELETE \
-H "QB-Token: b284ddf44f5369611fe14e0e588f1cfa855116c8" \
https://api.quickblox.com/users/external/697.json
Empty body
{
"errors": {
"base": [
"You are not allowed to modify this user"
]
}
}
null
{
"errors": {
"id": [
"should be a positive integer"
]
}
}
Users
Delete User by External ID
Delete a user by External User ID. A user can be deleted only by themselves or an account owner.
DELETE
/
users
/
external
/
{external_user_id}
.json
curl -X DELETE \
-H "QB-Token: b284ddf44f5369611fe14e0e588f1cfa855116c8" \
https://api.quickblox.com/users/external/697.json
Empty body
{
"errors": {
"base": [
"You are not allowed to modify this user"
]
}
}
null
{
"errors": {
"id": [
"should be a positive integer"
]
}
}
Recipes
Delete user by external id with API key
Delete user by external id with API key
1
1. Use 'Authorization' header to pass API key
curl -X DELETE \
-H 'Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI' \
https://api.quickblox.com/users/external/697.json
2
2. As a result, the API remove a user
curl -X DELETE \
-H 'Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI' \
https://api.quickblox.com/users/external/697.json
Path Parameters
integer
ID of the user in the external system ().
Headers
string
required
A user session token. See Authentication page to learn more about the session token.
string
default:"ApiKey {your_api_key}"
required
API key from Dashboard. Expected format:
ApiKey {your_api_key}. Must be used either QB-Token or Authorization.Responses
200
200
A successful response
404
404
An error response
curl -X DELETE \
-H "QB-Token: b284ddf44f5369611fe14e0e588f1cfa855116c8" \
https://api.quickblox.com/users/external/697.json
Empty body
{
"errors": {
"base": [
"You are not allowed to modify this user"
]
}
}
null
{
"errors": {
"id": [
"should be a positive integer"
]
}
}
Was this page helpful?