Creates a role with the given name, description and permissions, scoped to one or more structure types. Returns the created role.
Use this endpoint to define a new role for your organization. A role grants its permission set to any user who holds it on a structure. Creating a role grants no access on its own. Assign users to it with the Add users to a role endpoint.
Scope the role with structure_type_ids. The role can then be assigned only on structures of those types. Resolve your organization's structure types from the Structures section.
Requirements
Field limits
nameholds 1 to 36 characters.descriptionholds 1 to 200 characters.structure_type_idsholds 1 to 100 structure type IDs.permissionsholds any combination of the values listed in the Roles overview.
The response returns the created role, including the id you need to assign users to it.
A new role is never the default role for a structure type.
is_defaultanduser_countare read-only and appear only on the role returned in the response.