Resource Types API: Sample Use Cases and Flows

This article presents possible use cases that your app could support, along with sample flows to implement each use case. These examples can serve as a helpful starting point as you plan your app's functionality.

Setting up a custom resource type with bookable resources

This use case demonstrates the process of creating a custom resource type with bookable resources such that their availability will be automatically managed by the Bookings app.

To create a custom resource type with bookable resources:

  1. Use Create Resource Type to create a resource type by providing a descriptive name. Save the resource type ID.

  2. Use Create Resource or Bulk Create Resources to create individual resources. Be sure to include the ID of the created resource type to make each resource bookable.

  3. Use Query Services to retrieve the IDs of the services that require a resource of this type to booked.

  4. Use Update Service to connect the resource type for each service providing the ID of the service and the ID of the resource type.

Did this help?