POST /api/v1/roles
Requires roles.create permission. Creates a custom role scoped to the current organization.
Request body
Machine-readable identifier for the role. Must be unique within the organization. Example:
release_manager.Human-readable display name for the role. Example:
Release Manager.Array of permission strings to grant to members with this role. Example:
["flags.read", "flags.write", "rules.read", "rules.write"].Response
The newly created role.
Errors
| Status | When |
|---|---|
400 | Request body is invalid or missing required fields |
401 | Missing or invalid Bearer token |
403 | Caller lacks roles.create permission |
409 | A role with the given key already exists |