Skip to main content
PATCH
/
organizations
/
{organization_id}
/
roles
/
{role_id}
Update Organization Role
curl --request PATCH \
  --url https://api.wacht.dev/organizations/{organization_id}/roles/{role_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "permissions": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "name": "Owner",
  "description": "<string>",
  "permissions": [
    "org.manage",
    "billing.manage",
    "members.manage"
  ],
  "is_default": false,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Path Parameters

organization_id
string
required

(i64 formatted as string)

role_id
string
required

(i64 formatted as string)

Body

application/json
name
string
description
string
permissions
string[]

Response

Role updated successfully

id
string

(i64 formatted as string)

name
string
Example:

"Owner"

description
string | null
permissions
string[]
Example:
[
"org.manage",
"billing.manage",
"members.manage"
]
is_default
boolean
Example:

false

created_at
string<date-time>