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.
You can only call this method when authenticated as a Wix app or Wix user identity.
Resource type ID.
Resource type to update.
Updated resource type.
To update a resource type the fields id
and revision
are required. Partial updates are supported.
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"
}
}'
{
"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"
}
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.