Update a role
curl --request PUT \
--url https://api.hyra.io/workspace/{workspaceId}/roles/{roleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"group_roles": [
"<string>"
],
"permissions": [
"<string>"
],
"manual_users": [
"<string>"
]
}'
{
"name": "<string>",
"group_roles": [
"<string>"
],
"permissions": [
"<string>"
],
"_id": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object
.
curl --request PUT \
--url https://api.hyra.io/workspace/{workspaceId}/roles/{roleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"group_roles": [
"<string>"
],
"permissions": [
"<string>"
],
"manual_users": [
"<string>"
]
}'
{
"name": "<string>",
"group_roles": [
"<string>"
],
"permissions": [
"<string>"
],
"_id": "<string>"
}