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 updateResourceSchedule().

Notes:

  • 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".
  • Only users with the Bookings Admin role can update a resource. You can override the role permissions by setting the options.suppressAuth parameter to true.

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".

Method Declaration
Copy
Method Parameters
idstringRequired

ID of the resource to be updated.


resourceInfoUpdateResourceInfoRequired

Resource information to update.


optionsOptions

An object representing the available options for updating a resource.

Returns
Return Type:Promise<Resource>
Was this helpful?
Yes
No