Skip to main content
POST
Raise one booking for each thing chosen, with who it is for, who pays, the site and the window shared.

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

Raise one booking for each thing chosen, with who it is for, who pays, the site and the window shared. All or nothing: a refusal raises none, and its detail names the resource and its position in the list.

p_bookings
string<jsonb>
required
p_ends_at
string<timestamp with time zone>
required
p_starts_at
string<timestamp with time zone>
required
p_type_code
string<text>
required
p_booked_for_user_id
string<uuid>
p_charge_to
string<text>
p_payer_id
string<uuid>
p_project_tasks
string<jsonb>
p_purpose
string<text>
p_site_id
string<uuid>
p_worker_id
string<uuid>

Response

200

OK