PATCH

Update Resource Type


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

Each time the resource type is updated, revision increments by 1. You must include current revision of the resource type 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-types/{resourceType.id}

Path Params
resourceType.idstringRequired

Resource type ID.

Body Params
resourceTypeResourceTypeRequired

Resource type to update.

Response Object
resourceTypeResourceType

Updated resource type.

Update a resource type.

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

Request
cURL
curl -X PATCH \ 'https://www.wixapis.com/bookings/v2/resources/resource-types/28221941-9d0d-4c91-806b-e2a08073d37a' \ -H 'Authorization: <AUTH>' \ -d '{ "resourceType": { "id": "28221941-9d0d-4c91-806b-e2a08073d37a", "revision": "1", "name": "Meeting room with conference system" } }'
Response
JSON
{ "resourceType": { "id": "28221941-9d0d-4c91-806b-e2a08073d37a", "revision": "2", "createdDate": "2024-11-14T13:32:36.462Z", "updatedDate": "2024-11-14T13:39:20.409Z", "name": "Meeting room with conference system" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

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