Skip to main content
PATCH
/
v1
/
orgs
/
{orgId}
/
roles
/
{roleId}
Update organization role
curl --request PATCH \
  --url https://api.openworklabs.com/v1/orgs/{orgId}/roles/{roleId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "roleName": "<string>",
  "permission": {}
}
'
{
  "success": true
}

Path Parameters

orgId
string<typeid>
required

Den TypeID with 'org_' prefix and a 26-character base32 suffix.

Required string length: 30
Pattern: ^org_.*
roleId
string<typeid>
required

Den TypeID with 'orl_' prefix and a 26-character base32 suffix.

Required string length: 30
Pattern: ^orl_.*

Body

application/json
roleName
string
Required string length: 2 - 64
permission
object

Response

Organization role updated successfully.

success
boolean
required