Skip to content
Dashboard
Theme
Theme

Set an organization's third-party app rule

PUT /v1/organizations/{org}/oauth_settings: Set an organization's third-party app rule.

View Markdown

PUT /v1/organizations/{org}/oauth_settings

Scope
oauth:write
Auth
Secret key (sk_…)
Since
1.0
  • org string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • third_party_apps string Required

    one of allow, deny

Errors share one shape; see the error code catalogue.

curl -X PUT \
"https://api.ohauthcat.com/v1/organizations/org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/oauth_settings" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"third_party_apps": "allow"
}'
Response 200
{
"object": "organization_oauth_settings",
"organization": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"third_party_apps": "allow"
}