Adds a role built on one of the static roles 'staticRoles' lists -- the static role decides which permissions the new role can hold at all and which console the accounts holding it enter, and it cannot be changed afterwards.
Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/roles.do
Adds a role built on one of the static roles 'staticRoles' lists -- the static role decides which permissions the new role can hold at all and which console the accounts holding it enter, and it cannot be changed afterwards. 'copyFrom' starts the new role from another role's permissions and admin console pages instead of from nothing; without it the role starts with no permissions and is given the User Roles & Permissions page, as the console does. A role built on ADMIN needs the Create ADMIN-based role permission. Requires the Admin Roles & Permissions or User Roles & Permissions console permission.
Form Params
namestringrequired
The role's name, as the console shows it
Campaign manager
staticRolestringrequired
The static role to build on: its id, or its name as 'staticRoles' spells it
NETWORK_MANAGER
copyFrominteger
Start from this role's permissions and admin console pages