This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a new resource type.
You can only call this method when authenticated as a Wix app or Wix user identity.
Resource type to be created.
The created resource type.
curl -X POST \
'https://www.wixapis.com/bookings/v2/resources/resource-types' \
-H 'Authorization: <AUTH>' \
-d '{
"resourceType": {
"name": "Meeting room"
}
}'
{
"resourceType": {
"id": "28221941-9d0d-4c91-806b-e2a08073d37a",
"revision": "1",
"createdDate": "2024-11-14T13:32:36.462Z",
"updatedDate": "2024-11-14T13:32:36.462Z",
"name": "Meeting room"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.