Skip to content

Update Agent Settings

PUT
/customer_service/202309/agents/settings

Use this API to set whether the shop owner’s customer service account can accept auto-assigned chats. The authenticated shop owner can update only their own setting; customer service subaccounts are not supported in this API version. Set can_accept_chat to true to accept auto-assigned chats.

shop_cipher
required
string

Identifies the shop. Obtain it from the Get Authorized Shops API.

Media typeapplication/json
object
can_accept_chat
required

Whether the shop owner’s customer service account can accept auto-assigned chats.

  • true: The agent receives auto-assigned chats and can also manually select chats to respond to.
  • false: The agent receives only manually assigned chats.

For a shop with only one customer service agent, set this field to true; false is rejected. When using the IM API, true is recommended.

boolean
Example
{
"can_accept_chat": true
}

Success

Media typeapplication/json
object
code

Status code; 0 means success.

integer format: int64
message

Success or failure message.

string
request_id

Request log ID.

string
data
object
Example
{
"code": 0,
"data": {},
"message": "Success",
"request_id": "202203070749000101890810281E8C70B7"
}