PATCH
/
v0
/
w
/
brands
/
{brandId}
/
users
/
{userId}
{
  "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,
      "features": {
        "watermark": false,
        "api": true,
        "webhooks": false,
        "functions": false,
        "integrations": false,
        "googleChatIntegration": false,
        "messengerChatIntegration": false,
        "crispChatIntegration": false,
        "slackChatIntegration": false,
        "zendeskChatIntegration": false
      },
      "createdAt": "2024-02-05T13:35:44.155845Z",
      "updatedAt": "2024-02-05T13:35:44.155845Z"
    }
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

Id of the whitelabel user

brandId
string
required

Id of the whitelabel brand

Body

application/json
chatbotsQuota
integer

Chatbots quota to be assigned to the user

Required range: x > 0

Links quota to be assigned to the user

Required range: x > 0
filesQuota
integer

Files quota to be assigned to the user

Required range: x > 0
combinedMessagesQuota
integer

Combined messages quota to be assigned to the user

Required range: x > 0
membersQuota
integer

Members quota to be assigned to the user

Required range: x > 0
features
object

Features to be enabled/disabled for the user. You can enable/disable only those features which are enabled for the whitelabel brand owner.

Response

200 - application/json
success
boolean

Indicates whether this is success response or error response

message
string

Overall message regarding the operation performed

data
object

Data returned from the server