BlockedTimePresets

Copy a blocked-time preset

Duplicates an existing BlockedTimePreset into a new record with overridden name (required). Other fields fall back to the source preset's values unless overridden.

Requires the SETTINGS_MANAGE permission on the source preset's site.

post/shop/blocked-time-presets/{blockedTimePresetId}/copy

Request body

namestring required

Display name for the new preset.

durationinteger

Override the source duration.

type'cleaning' | 'break' | 'meeting' | 'other'

Override the source block type.

labelstring nullable

Override the source label.

notesstring nullable

Override the source notes.

colorstring nullable

Override the source colour (#rrggbb).

Example request

{
  "name": "Lunch break (covered)",
  "duration": 45,
  "label": "Lunch",
  "notes": "Cover the front desk with reception.",
  "color": "#ff8800"
}

Response

A single BlockedTimePreset.

Example response

{
  "data": {
    "id": "65f1234567890abcdef12345",
    "name": "Lunch break",
    "duration": 30,
    "type": "break",
    "label": "Lunch",
    "color": "#ff8800"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.