Roles: DeleteRole

Deletes a role from a company account in Rooms Version 6.

Permissions

To use this method, you must have the canManageAccount permission set to true.

Request

HTTP request

DELETE /restapi/v2/accounts/{accountId}/roles/{roleId}

Parameters

Parameter NameValueDescription
Path Parameters
roleIdinteger

(Required) The id of the role to delete.

accountIdstring

(Required) The id of the account.

Responses

CodeDescriptionReference
204

Role successfully deleted.

400

Bad request. See ErrorCode and Message for details

ApiError
401

Not authorized to make this request.

ApiError

SDK Method

Roles::DeleteRole

Definitions

ApiError

This object describes errors that occur. It is valid only for responses and ignored in requests.

errorCodestring

The code associated with the error condition.

messagestring

A brief message describing the error condition.

}} />