Booking
Resources
Manage bookable resources such as rooms, staff members, or equipment. Resources are the entities against which availability and bookings are tracked.
Create a resource
POST
/modules/booking/resources
Create a bookable resource.
curl
curl -X POST https://api.saasignal.saastemly.com/modules/booking/resources \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{"name":"example"}'
json — 201 Created
{ "status": "ok" }
Body field
Type
Description
name requiredstring
1–256 chars
typestring
values:
room, table, staff, equipment, genericdescriptionstring
max 2000 chars
capacityinteger
range ≥1 .. ≤10000
duration_min_minutesinteger
range ≥1 .. ≤1440
duration_max_minutesinteger
range ≥1 .. ≤1440
duration_default_minutesinteger
range ≥1 .. ≤1440
enabledboolean
metadataobject
Error responses
401 Unauthorized
402 Insufficient tokens
429 Rate limited
List resources
GET
/modules/booking/resources
List bookable resources.
curl
curl https://api.saasignal.saastemly.com/modules/booking/resources \
-H "Authorization: Bearer sk_live_..."
json — 200 OK
{ "status": "ok" }
Query param
Type
Description
typestring
enabledboolean
limitinteger
range ≥1 .. ≤100default
25cursorstring
Error responses
401 Unauthorized
402 Insufficient tokens
429 Rate limited
Get a resource
GET
/modules/booking/resources/{resource_id}
Retrieve a single resource.
curl
curl https://api.saasignal.saastemly.com/modules/booking/resources/{resource_id} \
-H "Authorization: Bearer sk_live_..."
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
resource_id requiredstring
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
429 Rate limited
Update a resource
PATCH
/modules/booking/resources/{resource_id}
Update a bookable resource.
curl
curl -X PATCH https://api.saasignal.saastemly.com/modules/booking/resources/{resource_id} \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{}'
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
resource_id requiredstring
Body field
Type
Description
namestring
1–256 chars
typestring
values:
room, table, staff, equipment, genericdescriptionmixed
capacityinteger
range ≥1 .. ≤10000
duration_min_minutesmixed
duration_max_minutesmixed
duration_default_minutesmixed
enabledboolean
metadataobject
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
429 Rate limited
Delete a resource
DELETE
/modules/booking/resources/{resource_id}
Permanently remove a resource.
curl
curl -X DELETE https://api.saasignal.saastemly.com/modules/booking/resources/{resource_id} \
-H "Authorization: Bearer sk_live_..."
json — 200 OK
{ "status": "ok" }
Path param
Type
Description
resource_id requiredstring
Error responses
401 Unauthorized
402 Insufficient tokens
404 Not found
429 Rate limited