Update

Update a role

Update

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

Update a role. The roleId must be passed in to the endpoint as a path parameter.

Path Parameters

Name
Type
Description

roleId

integer

ID of the role to be updated

Headers

Name
Type
Description

Authorization

string

Bearer {{API_KEY}}

Request Body

Name
Type
Description

permissions

object

Permissions object. The features the role will have access to.

roleName

string

Name of the role

{
  "data": {
    "id": 3,
    "roleName": "Higher Master",
    "permissions": [],
    "permissionType": {},
    "meta": {},
    "users": []
  }
}

Body(raw)

{
  "roleName": "Admin",
  "permissions": {},
  "meta": {},
  "additionalProp1": {}
}

Last updated