Create a reservation resource
Creates a bookable resource. Give it weekly hours with resource availability and attach it to services with service resources; a resource without availability is never free.
Endpoint
POST/reservation-resources
Body
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | integer | Yes | Your organization ID (the API key's organization). |
resource_type | string | Yes | person, room, equipment, vehicle or other. |
name | string | Yes | Display name, max 255 characters. |
description | string | No | Description. |
user_id | integer | No | Organization user, for person resources. |
capacity | integer | No | Simultaneous capacity. Default 1. |
metadata | object | No | Free-form attributes. |
color | string | No | Hex color. |
is_active | boolean | No | Default true. |
Request
Response
Returns the created resource object.
json
Errors
| Status | When |
|---|---|
400 Bad Request | Missing required field or invalid resource_type. |
403 Forbidden | organization_id is not the API key's organization. |
Report an issue with this documentation
Please log in to report issues with our documentation.