Skip to content
Dashboard
Theme
Theme

Replace a connected app's settings

PUT /v1/oauth/clients/{client}: Replace a connected app's settings.

View Markdown

PUT /v1/oauth/clients/{client}

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

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • name string Required

    min length 1 · max length 100

  • type string Required

    Ignored on update: a client never changes type.

    one of confidential, public

  • redirect_uris array of string

    max items 20

  • post_logout_redirect_uris array of string

    Where RP-initiated logout may send the browser afterwards; the redirect URI rules apply (https, or loopback and private-use schemes for public clients). Absent reads as none.

    max items 20

  • grant_types array of string Required

    min items 1 · max items 4

  • scopes array of string

    max items 50

  • consent_text string or null

    max length 500

  • logo_uri string or null

    max length 2048

  • third_party boolean

Errors share one shape; see the error code catalogue.

curl -X PUT \
"https://api.ohauthcat.com/v1/oauth/clients/ocl_01J9Z3K5V7W8X9Y0Z1A2B3C4D5" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corp",
"type": "confidential",
"grant_types": [
"authorization_code"
]
}'
Response 200
{
"id": "ocl_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "oauth_client",
"name": "Acme Corp",
"type": "confidential",
"redirect_uris": [
"https://app.acme.com/callback"
],
"post_logout_redirect_uris": [
"https://app.acme.com/callback"
],
"grant_types": [
"authorization_code"
],
"scopes": [
"organizations:read"
],
"consent_text": "example_consent_text",
"logo_uri": "https://app.acme.com/callback",
"third_party": true,
"registration": "managed",
"secret_set_at": "2026-01-15T09:30:00Z",
"created_at": "2026-01-15T09:30:00Z",
"updated_at": "2026-01-15T09:30:00Z"
}