PATCH

Update OAuth App


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Updates an OAuth app.

Only fields provided in mask.paths are updated.

You can update the following fields:

  • name
  • description
  • allowedDomain
  • loginUrl
  • logoutUrl
  • technology
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Headless Manage
Manage OAuth Apps
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/oauth-app/v1/oauth-apps/{oAuthApp.id}

Path Params
oAuthApp.idstringRequired

ID of the OAuth app.

Body Params
oAuthAppOAuthAppRequired

Updated OAuth app details. May include some or all fields.

Response Object
oAuthAppOAuthApp

Updated OAuth app info.

Update an existing OAuth app
Request
cURL
curl -X PATCH \ 'https://www.wixapis.com/oauth-app/v1/oauth-apps/adddb436-aa2c-474a-8f0e-af719f3acd5b' \ -H 'Authorization: <AUTH> \ -H 'Content-Type: application/json' \ -d '{ "oAuthApp": { "allowedRedirectDomains": ["www.my-test-site.com"] }, "mask": { "path": "allowedRedirectDomains" } }'
Response
JSON
{ "oAuthApp": { "id": "adddb436-aa2c-474a-8f0e-af719f3acd5b", "createdDate": "2023-03-28T13:43:48.959Z", "name": "Test app", "description": "Some test app", "allowedRedirectDomains": ["www.my-test-site.com"], "allowedRedirectUris": [] } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?