PATCH

Update Branch


Updates a branch.

Each time the branch is updated, revision increments by 1. If the current revision is passed, it's validated to ensure you're working with the latest branch and prevents unintended overwrites. If revision isn't passed, the update is applied without a revision check.

Note that ORIGINAL_BRANCH types can't be updated.

Authentication

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

Permission Scopes
Manage Site Branches
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/branches/v1/branches/{branch.id}

Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

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