# Update

## Update

<mark style="color:orange;">`PUT`</mark> `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                                               |

{% tabs %}
{% tab title="200 " %}

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

{% endtab %}
{% endtabs %}

## Body(raw)

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