Add

Add a new role

Add

POST https://{{account_id}}.acquire.io/api/v1/account/role

Add a new role. The body must contain the keys roleName and permissions.

Headers

Name
Type
Description

Authorization

string

Bearer {{API_KEY}}

Request Body

Name
Type
Description

permissions

object

Permissions object. Give permission to access features in the platform.

roleName

string

Name of the role

{
  "data": {
    "roleName": "MyMaster",
    "meta": {},
    "permissionType": {},
    "id": 3
  }
}

Body(raw)

{
    "roleName" : "Agent",
    "permissions" : {
        "chat": ["cobrowse"]
    }
}

Last updated