Record leave or a one-off block. Clashing bookings return requires_staff_action unless accept_conflicts is true

post/api/v1/team/{id}/leave

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/team/{id}/leave
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Path parameters

idstring required

Request body

starts_atstring
ends_atstring
datestring

All-day leave from this date

end_datestring
kind'leave' | 'sick' | 'training' | 'block' | 'other'
reasonstring
accept_conflictsboolean

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.