Skip to main content

Update role

Update a role title, description and permissions.

Path Parameters
    id string required

    The role id to update.

Request Body required
    name string
    permissions string[]
    metadata object
    title string
    scopes string[]
Responses

A successful response.


Schema
    role object
    id string
    name string
    permissions string[]
    title string
    metadata object
    created_at date-time

    The time the role was created.

    updated_at date-time

    The time the role was last updated.

    org_id string
    state string
    scopes string[]
PUT /v1beta1/roles/:id

Authorization

name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic

Request

Base URL
http://127.0.0.1:7400
Security Scheme
Username
Password
id — path required
Body required
{
"name": "string",
"permissions": [
"string"
],
"metadata": {},
"title": "string",
"scopes": [
"string"
]
}
curl / cURL
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/roles/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"permissions": [
"string"
],
"metadata": {},
"title": "string",
"scopes": [
"string"
]
}'