Skip to main content

Overview

Deletes custom attributes from a specified chatroom.

Request

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

Method: POST

Rate limit: 100 requests/second

Endpoint: https://API domain/apigateway/chatrooms/atts/del

Content-Type: application/json

Request Parameters

ParameterData TypeRequiredDescription
from_idstringYesID of the user deleting the attributes. Maximum length: 32 characters.
chat_idstringYesChatroom ID. Maximum length: 32 characters.
attsarrayYesAttributes to delete. Each key can contain up to 50 characters.
atts[0].keystringYesAttribute key. Maximum length: 50 characters.
atts[0].is_forceboolNoWhether to force deletion. Default: false.

Request Example

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

{
"from_id":"userid1",
"chat_id":"chatroom1",
"atts":[
{
"key":"k1",
"is_force":false
}
]
}

Response Example

{
"code":0,
"msg":"sucess",
"data":{
"atts":[
{
"key":"k1",
"code":0,
"att_time":1732123445223
}
]
}
}