Skip to main content

Create a new role

Creates a new role.

  • name - Name of the role to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.

Create a new role

Creates a new role.

  • name - Name of the role to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built CreateRoleRequest to the /create/role endpoint.

Sends a pre-built CreateRoleRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.