Workspace Roles
Create a role
Creates a role from a set of scopes belonging to one product. Get the available scope keys from /api/v1/workspace/products//scopes. Re-using the key of a role that was removed brings that role back with the new name and scopes.
POST
Authorizations
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
Body
application/json
Name shown to the user
Maximum string length:
255Example:
"Loop Agent"
Lowercase letters, digits and underscores; derived from the name when omitted
Maximum string length:
255Example:
"loop_agent"
Optional; when given, every scope must belong to this product and at least one scope is required
Example:
"loop"
Scope keys, all from the same product; omit for a role with no access yet
Example: