POST
/
workspace
/
{workspaceId}
/
roles
curl --request POST \
  --url https://api.hyra.io/workspace/{workspaceId}/roles \
  --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>"
  ],
  "manual_users": [
    "<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

Body

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

Response

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