Authorizations
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Path Parameters
An UID of a user.
Body
application/json
The array of friends to remove.
Response
200 - application/json
A list of api keys
curl --request DELETE \
--url https://{appid}.api-{region}.cometchat.io/v3/users/{uid}/friends \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"friends": [
"<string>"
]
}'{
"data": {
"success": true,
"message": "Deleted the friend relations succussfully"
}
}The API removes friends for a given UID.
curl --request DELETE \
--url https://{appid}.api-{region}.cometchat.io/v3/users/{uid}/friends \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"friends": [
"<string>"
]
}'{
"data": {
"success": true,
"message": "Deleted the friend relations succussfully"
}
}API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
An UID of a user.
The array of friends to remove.
A list of api keys
Was this page helpful?