PATCH

Update Resource


Deprecated

This method has been replaced with Update Resource, and will be removed on June 30, 2025.

Updates a resource.

Use this endpoint to update all resource information except for the resource's schedule. To update a resource's schedule use the Update Schedule endpoint.

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".
  • When updating a resource's schedule you cannot change the resource tag used by the Wix Bookings app. Tags used by the app have the values "INDIVIDUAL""GROUP", and "COURSE”.
  • The businessLocation.businessSchedule object in the schedule.location object is not supported.

Permissions: This endpoint requires the Manage Bookings permission scope.

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/v1/resources/{resource.id}

Path Params
resource.idstringRequired

Resource ID.

Body Params
resourceResource

Resource to update.

Response Object
resourceResource

Updated resource.


schedulesSchedules

Updated schedules.

Update Resource

Update resource details.

Request
cURL
curl -X PATCH \ 'https://www.wixapis.com/bookings/v1/resources' \ -H "Content-Type: application/json" \ -H 'Authorization: <AUTH>' \ --data '{ "resource": { "name": "Sakura H. Tanaka", "email": "stanaka@test.info", "phone": "555 4337" } }'
Response
JSON
{ "resource": { "id": "26a20115-6b1c-42d8-88cf-897e8fbaadb5", "name": "Sakura H. Tanaka", "email": "stanaka@test.info", "phone": "555 4337", "tags": ["staff"], "images": [], "schedules": [ { "id": "ac23ffec-83ee-4c84-8d67-c6bba9d9fabf", "scheduleOwnerId": "26a20115-6b1c-42d8-88cf-897e8fbaadb5", "firstSessionStart": "2021-05-26T13:00:00Z", "timeZone": "America/New_York", "intervals": [ { "id": "90e6035f-2064-47bd-9782-acf300d5dd5c", "start": "2021-07-05T04:00:00Z", "interval": { "daysOfWeek": "MON", "hourOfDay": 10, "minuteOfHour": 0, "duration": 360 }, "frequency": { "repetition": 1 }, "affectedSchedules": [], "intervalType": "AVAILABILITY" }, { "id": "0afc9519-9284-416e-b952-cf064868b80c", "start": "2021-07-05T04:00:00Z", "interval": { "daysOfWeek": "MON", "hourOfDay": 13, "minuteOfHour": 0, "duration": 60 }, "frequency": { "repetition": 1 }, "affectedSchedules": [], "intervalType": "AVAILABILITY" }, { "id": "be271e06-2bb0-4126-91c4-98587938c1c6", "start": "2021-07-05T04:00:00Z", "interval": { "daysOfWeek": "WED", "hourOfDay": 10, "minuteOfHour": 0, "duration": 360 }, "frequency": { "repetition": 1 }, "affectedSchedules": [], "intervalType": "AVAILABILITY" }, { "id": "abf06a51-d46a-43d5-826b-b2a5be0ffab8", "start": "2021-07-05T04:00:00Z", "interval": { "daysOfWeek": "WED", "hourOfDay": 13, "minuteOfHour": 0, "duration": 60 }, "frequency": { "repetition": 1 }, "affectedSchedules": [], "intervalType": "AVAILABILITY" }, { "id": "152d932e-7c08-4527-87b8-bd948aeadf61", "start": "2021-07-05T04:00:00Z", "interval": { "daysOfWeek": "WED", "hourOfDay": 10, "minuteOfHour": 0, "duration": 60 }, "frequency": { "repetition": 1 }, "affectedSchedules": [], "intervalType": "AVAILABILITY" }, { "id": "f6959ffb-7b83-4682-a4ea-c20ea633c869", "start": "2021-07-05T04:00:00Z", "interval": { "daysOfWeek": "FRI", "hourOfDay": 10, "minuteOfHour": 0, "duration": 360 }, "frequency": { "repetition": 1 }, "affectedSchedules": [], "intervalType": "AVAILABILITY" } ], "tags": [], "availability": { "start": "2021-08-06T12:00:00Z", "linkedSchedules": [ { "scheduleId": "48ed1477-443b-40f4-bd71-7a04e863cafd", "transparency": "BUSY", "scheduleOwnerId": "e6b6108c-92bc-462b-937c-dab386909fd2" } ], "locations": [], "useDefaultLocation": true }, "totalNumberOfParticipants": 0, "participants": [], "status": "CREATED", "created": "2021-05-20T16:35:22.669Z", "updated": "2021-07-26T09:56:52.856Z", "version": 26, "inheritedFields": [], "scheduleOwnerName": "Sakura H. Tanaka" } ], "scheduleIds": ["ac23ffec-83ee-4c84-8d67-c6bba9d9fabf"], "status": "UPDATED", "wixUserId": "06804ab5-51fb-44e0-8f9c-bf45efbc2e5e" } }
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?