OAuth App Registrations
Update an OAuth app registration
Changed onUpdate mutable fields on a registration.
client_id is immutable (would orphan every dependent credential) — use :rotate-secret for the client secret.
patch/oauth-app-registrations/{id}
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /oauth-app-registrations/{id}
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL /authorize, token URL /oauth/token)
Path parameters
idstring required
ID of the OAuth app registration.
Example:oar_6968b39821e5f89a6975f501
Request body
Example request
{
"authorization_endpoint": "https://github.com/login/device/code",
"authorize_url": "https://github.com/login/oauth/authorize",
"default_scopes": [
"repo",
"read:user"
],
"display_name": "GitHub",
"is_active": true,
"name": "MyOrg GitHub",
"token_endpoint": "https://github.com/login/oauth/access_token",
"token_url": "https://github.com/login/oauth/access_token"
}Response
Successful Response
Example response
{
"api_vendor": "github",
"authorization_endpoint": "https://github.com/login/device/code",
"authorize_url": "https://github.com/login/oauth/authorize",
"catalog_api_id": "github.com/api.github.com",
"client_id": "Iv1.a1b2c3d4",
"created_at": "2026-01-15T09:30:00Z",
"created_by": "usr_6968b3987ee4c3ec0b4ee3b9",
"default_scopes": [
"repo",
"read:user"
],
"dependent_credential_count": 4,
"display_name": "GitHub",
"flow_kind": "authorization_code",
"has_client_secret": true,
"id": "oar_6968b39821e5f89a6975f501",
"is_active": true,
"name": "MyOrg GitHub",
"secret_last_rotated_at": "2026-01-20T14:05:00Z",
"token_endpoint": "https://github.com/login/oauth/access_token",
"token_url": "https://github.com/login/oauth/access_token",
"updated_at": "2026-01-20T14:05:00Z"
}Changes
- info
the endpoint scheme security
OAuth2was added to the API
- info
- info
endpoint added
- info