POST

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

Creates a new resource type.

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
POST
https://www.wixapis.com/bookings/v2/resources/resource-types

Body Params
resourceTypeResourceTypeRequired

Resource type to be created.

Response Object
resourceTypeResourceType

The created resource type.

Create a resource type.
Request
cURL
curl -X POST \ 'https://www.wixapis.com/bookings/v2/resources/resource-types' \ -H 'Authorization: <AUTH>' \ -d '{ "resourceType": { "name": "Meeting room" } }'
Response
JSON
{ "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" } }
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?