Skip to main content

Overview

Removes friendship relationships for a user.

Request

Authentication: Add authentication headers to the request. See Authentication.

Method: POST

Rate limit: 100 requests/second

Endpoint: https://API domain/apigateway/friends/del

Content-Type: application/json

Request Parameters

ParameterData TypeRequiredDescription
user_idstringYesUser ID. Maximum length: 32 characters.
friend_idsarrayYesIDs of the users whose friendship relationships are being removed. Each user ID can contain up to 32 characters.

Request Example

POST /apigateway/friends/del HTTP/1.1
appkey: appkey
signature: 2e639ae3600a4sdff61fb88b76f485b
nonce: nonce
timestamp: 1672568121910
Content-Type: application/json

{
"user_id":"userid1",
"friend_ids":["userid2","userid3"]
}

Response Example

{
"code":0,
"msg":"sucess"
}