Skip to main content
POST
/
v1
/
orgs
/
{orgId}
/
roles
Create organization role
curl --request POST \
  --url https://api.openworklabs.com/v1/orgs/{orgId}/roles \
  --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_.*

Body

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

Response

Organization role created successfully.

success
boolean
required