Skip to content

Time Blocks

GET /v1/time-blocks

Returns business time blocks, sorted by start date descending.

ParameterTypeDefaultDescription
limitinteger25Results per page
offsetinteger0Offset

Success: 200 OK — (same JSON as Spanish docs)

POST /v1/time-blocks
FieldTypeRequiredDescription
namestringYesBlock name (max 255)
startTimestringYesStart ISO 8601
endTimestringYesEnd ISO 8601 (after startTime)
locationIdstring (UUID)YesLocation UUID
repetitionobjectNoRepetition config
repetition.typestringYes*daily, weekly, monthly, yearly
repetition.endTypestringYes*afterTimes, untilDate
repetition.endValuemixedYes*Count or end date
providersstring[] (UUID)YesProfessional UUIDs (min 1)

Success: 201 Created{ "id": "..." }

DELETE /v1/time-blocks/{id}

Deletes the block and associated calendar events.

Success: 204 No Content