E Roles#

List

#

GET /roles

Lists all roles for the workspace

Request
curl -X GET "https://api.us-west-2.fragment.dev/roles" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json"

Response
{
  "data": [
    {
      "id": "role_abc123",
      "role": "admin"
    }
  ]
}

Create

#

POST /roles

Creates a new role

Request
curl -X POST "https://api.us-west-2.fragment.dev/roles" \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{"role":"admin"}'

Response
{
  "data": {
    "id": "role_abc123",
    "role": "admin"
  }
}

Parameters
Name Description
role (required) - stringName of the role