updateResource( )


Updates a resource.

The updateResource() function returns a Promise that resolves when a resource is updated. Use this function to update all bookings resource information except for the resource's schedule. To update a resource's schedule use updateSchedule().

Note: When updating a resource you cannot change the system tags used by the Wix Bookings app. Tags used by the app have the values "business" and "staff".

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Bookings
Manage Bookings - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
_idstringRequired

Resource ID.


resourceUpdateResourceRequired

Resource to update.


optionsUpdateResourceOptions
Returns
Return Type:Promise<Resource>
Did this help?