OAuth Apps
Update OAuth app
Update an OAuth app's configuration. All body fields are optional — supply only what should change. URL fields (homepageUrl, privacyPolicyUrl, termsOfServiceUrl) accept null to clear them.
Creator-only: even org admins cannot edit apps owned by other users.
When modifying allowedScopes, the new set must remain a subset of the caller's role-aware scope list (same rule as GET /oauth-clients/scopes). When adding authorization_code to allowedGrantTypes, redirectUris becomes required and must contain at least one URI; otherwise the request is rejected with 400 by the Zod refine on updateAppSchema.
This endpoint never rotates the client secret — use POST /oauth-clients/{appId}/regenerate-secret for that.
put/oauth-clients/{appId}
Path parameters
appIdstring required
OAuth app ID
Request body
Response
OAuth app updated
Example response
{
"message": "OAuth app updated successfully"
}