Roles
Creates a custom role, like Roles → Create Role in the app.
Requires ManageRoles and an Idempotency-Key. The name must be unique in the organization (case-insensitive) and not a built-in role name; every permission must be a FlexPermissions name held by both the API key and its creator. Assign it to accounts with customRoleId / customRoleIds on /api/v1/users. Example: { "name": "Dispatcher", "description": "Schedules crews", "permissions": ["ViewJobs", "ManageJobs"] }.
post/api/v1/roles
Request
- Base URL: https://app.flexonthejob.com
- URL: https://app.flexonthejob.com/api/v1/roles
- Auth: HTTP bearer
Request body
Response
Created; Location points at the new role.
Changes
No recorded changes to this operation across all 1 revision of this API.