Create a new role.
POST
https://demo.azuracast.com/api/admin/roles
Body
application/json
namestringrequiredExample
Super AdministratorCopy
permissionsApi_Admin_RolePermissionsShow child attributes
globalArray<GlobalPermissions>administer allview administrationview system logsadminister settingsadminister api keysadminister stationsadminister custom fieldsadminister backupsadminister storage locationsrequiredShow child attributes
idintegerrequiredThe 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 podcastsrequiredResponse
Success
Response fields application/json
linksobjectread onlyShow child attributes
[key: string]stringidintegerread onlynamestringrequiredExample
Super AdministratorCopy
permissionsApi_Admin_RolePermissionsShow child attributes
globalArray<GlobalPermissions>administer allview administrationview system logsadminister settingsadminister api keysadminister stationsadminister custom fieldsadminister backupsadminister storage locationsrequiredShow child attributes
idintegerrequiredThe 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 podcastsrequiredis_super_adminbooleanread onlyWhether this role is the protected “Super Administrator” role.
Record not found.
Response fields application/json
codeintegerrequiredThe numeric code of the error.
Example
500Copy
typestringrequiredThe programmatic class of error.
Example
NotLoggedInExceptionCopy
messagestringrequiredThe text description of the error.
Example
Error description.Copy
formatted_messagestring | nullrequiredThe HTML-formatted text description of the error.
Example
<b>Error description.</b><br>Detailed error text.Copy
extra_dataArray<any>requiredStack traces and other supplemental data.
successbooleanrequiredUsed for API calls that expect an \Entity\Api\Status type response.
Example
falseCopy
A generic exception has occurred.
Response fields application/json
codeintegerrequiredThe numeric code of the error.
Example
500Copy
typestringrequiredThe programmatic class of error.
Example
NotLoggedInExceptionCopy
messagestringrequiredThe text description of the error.
Example
Error description.Copy
formatted_messagestring | nullrequiredThe HTML-formatted text description of the error.
Example
<b>Error description.</b><br>Detailed error text.Copy
extra_dataArray<any>requiredStack traces and other supplemental data.
successbooleanrequiredUsed for API calls that expect an \Entity\Api\Status type response.
Example
falseCopy
Authorization
ApiKeyapiKey in header