Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

Create Time Off

POST /tenants/{tenant}/time-off

Records time off over a date range, for the caller or (with Time Off Create) for tenantUserCode. Leave minutesPerDay empty for whole days. Expected hours drop on each of its days. A member's time off can't overlap, and one record covers at most 366 days.

Open to any signed-in user of the tenant: Your own time off needs no permission; anyone else's needs the Time Off permission, checked in the use case

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

Request Body*

{
  "tenantUserCode": "string",
  "startDate": "2024-01-01",
  "endDate": "2024-01-01",
  "type": "Holiday",
  "minutesPerDay": 1
}

Responses

201 Created
400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden
404 Not Found