Skip to main content
PUT
/
v2
/
organizations
/
{orgId}
/
teams
/
{teamId}
/
roles
/
{roleId}
/
permissions
Replace all permissions for an organization team role
curl --request PUT \
  --url https://api.cal.com/v2/organizations/{orgId}/teams/{teamId}/roles/{roleId}/permissions \
  --header 'Content-Type: application/json' \
  --data '{
  "permissions": [
    "eventType.read",
    "booking.read"
  ]
}'
{
  "status": "success",
  "data": [
    "<string>"
  ]
}

Headers

Authorization
string

For non-platform customers - value must be Bearer <token> where <token> is api key prefixed with cal_

x-cal-secret-key
string

For platform customers - OAuth client secret key

x-cal-client-id
string

For platform customers - OAuth client ID

Path Parameters

orgId
number
required
teamId
number
required
roleId
string
required

Body

application/json
permissions
enum<string>[]
required

Permissions to add (format: resource.action)

Example:
["eventType.read", "booking.read"]

Response

200 - application/json
status
string
required
Example:

"success"

data
string[]
required