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

NameTypeDescription

roleId

integer

ID of the role to be updated

Headers

NameTypeDescription

Authorization

string

Bearer {{API_KEY}}

Request Body

NameTypeDescription

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