PATCH

Update Resource


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 a resource.

Each time the resource is updated, revision increments by 1. You must include the current revision of the resource when updating it. This ensures you're working with the latest service information and prevents unintended overwrites.

Authentication

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

Permissions
Manage Bookings - all permissions
Manage Bookings
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/bookings/v2/resources/{resource.id}

Path Params
resource.idstringRequired

Resource ID.

Body Params
resourceResourceRequired

Resource to update.

Response Object
resourceResource

Updated resource.

Update a resource.

To update a resource the fields id and revision are required. Partial updates are supported.

Request
cURL
Response
JSON
Errors
400Invalid Argument

There are 7 errors 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?