GET /roles
Lists all roles for the workspace
curl -X GET "https://api.us-west-2.fragment.dev/roles" \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json"{
"data": [
{
"id": "role_abc123",
"role": "admin"
}
]
}POST /roles
Creates a new role
curl -X POST "https://api.us-west-2.fragment.dev/roles" \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{"role":"admin"}'{
"data": {
"id": "role_abc123",
"role": "admin"
}
}| Name | Description |
|---|---|
| role (required) - string | Name of the role |