Update details of a single role.

PUT
https://demo.azuracast.com/api/admin/role/{id}

Body

application/json
namestringrequired
Example
Super Administrator
Show child attributes
globalArray<GlobalPermissions>administer allview administrationview system logsadminister settingsadminister api keysadminister stationsadminister custom fieldsadminister backupsadminister storage locationsrequired
Show child attributes
idintegerrequired

The station ID.

permissionsArray<StationPermissions>administer allview station managementview station reportsview station logsmanage station profilemanage station broadcastingmanage station streamersmanage station mountsmanage station remotesmanage station mediadelete station mediamanage station automationmanage station web hooksmanage station podcastsrequired

Parameters

idinteger<int64>requiredpath

Role ID

Response

Success

Response fields application/json
successbooleanrequired
Example
true
messagestringrequired
Example
Changes saved successfully.
formatted_messagestringrequired
Example
<b>Changes saved successfully.</b>
403ForbiddenApi_Error

Access denied.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false
404Not FoundApi_Error

Record not found.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false
500Internal Server ErrorApi_Error

A generic exception has occurred.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false

Authorization

ApiKeyapiKey in header