Create User Role
Create a user role
The UserRole object
Show optional properties
{
"name": "string"
}
"{\n \"name\" : \"API Administrator\",\n \"description\" : \"Role to allow administrative access to all Suite API methods\",\n \"privilege-keys\" : [ \"ManageAlerts\", \"ManageAlarms\", \"ManageNotificationPlugins\" ],\n \"system-created\" : false\n}"
The name of the role.
The description for the role.
A role name suitable for display.
The collection of privilege keys
True if this role was created by the system
Represents a HTTP 'link' element.
It is implicit that all the link tags support http 'GET' method.
The created UserRole
"{\n \"name\" : \"API Administrator\",\n \"description\" : \"Role to allow administrative access to all Suite API methods\",\n \"privilege-keys\" : [ \"ManageAlerts\", \"ManageAlarms\", \"ManageNotificationPlugins\" ],\n \"system-created\" : false\n}"
The name of the role.
The description for the role.
A role name suitable for display.
The collection of privilege keys
True if this role was created by the system
Represents a HTTP 'link' element.
It is implicit that all the link tags support http 'GET' method.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string"}' https://{api_host}/suite-api/api/auth/roles