PATCH

Update 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 app.

Each time the app is updated, revision increments by 1. The current revision must be passed when updating the app. This ensures you're working with the latest app and prevents unintended overwrites. Supports partial updates; specify the app's ID and the fields to change.

In REST requests, explicitly set mask.paths to only the fields to change, such as ["name"], excluding id and revision. Supply the app ID in the URL and the current revision in the request body. The published SDK's apps.updateApp() does not expose a field-mask argument. Use the SDK-authenticated REST workaround shown in this method's SDK example, which sends an explicit mask with fetchWithAuth from @wix/sdk/context.

This method cannot update appSecrets, accountId, namespace, slug, createdBy, companionApp, or codeIdentifier. Including any of these fields or their nested fields in the request causes the entire request to fail; they aren't silently ignored. Use Set Namespace to assign a namespace and Generate Slug to generate a slug. This method does not support changing the owning account, creator, companion-app designation, or code identifier.

Changing status requires additional status-change authorization beyond permission to update other fields.

Endpoint
PATCH
https://www.wixapis.com/apps/v1/apps/{app.id}

Errors

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

Did this help?