PUT
/
workspace
/
{workspaceId}
/
roles
/
{roleId}
curl --request PUT \
  --url https://api.hyra.io/workspace/{workspaceId}/roles/{roleId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "group_roles": [
    "<string>"
  ],
  "manual_users": [
    "<string>"
  ],
  "name": "<string>",
  "permissions": [
    "<string>"
  ]
}'
{
  "_id": "<string>",
  "group_roles": [
    "<string>"
  ],
  "name": "<string>",
  "permissions": [
    "<string>"
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required
roleId
string
required

Body

application/json
group_roles
string[]
required
manual_users
string[]
required
name
string
required
permissions
string[]
required

Response

200 - application/json
_id
string
required
group_roles
string[]
required
name
string
required
permissions
string[]
required