更新白标用户
开发环境
开发环境
PATCH
/api/v0/w/brands/{brandId}/users/{userId}
1.
2.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://dev-cn.your-api-server.com/api/v0/w/brands//users/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"chatbotsQuota": 1,
"linksQuota": 100,
"filesQuota": 25,
"combinedMessagesQuota": 250,
"membersQuota": 2
}'
响应示例响应示例
200 - 成功示例
{
"success": true,
"message": "Updated the whitelabel user of the brand successfully",
"data": {
"whitelabelUser": {
"id": "332153612345906321",
"brandId": "332110515123458123",
"email": "user@example.com",
"name": "",
"profilePic": "",
"chatbotsQuota": 2,
"linksQuota": 20,
"filesQuota": 5,
"combinedMessagesQuota": 25,
"membersQuota": 2,
"createdAt": "2024-02-05T13:35:44.155845Z",
"updatedAt": "2024-02-05T13:35:44.155845Z"
}
}
}
请求参数
Path 参数
brandId
string
必需
userId
string
必需
Header 参数
Authorization
string
必需
示例值:
Bearer <token>
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
返回响应
修改于 2024-03-28 08:41:09