Resources

Create a dated absence for a resource

Marks a resource unavailable for a window of time, blocking scheduling and auto-assignment for jobs whose scheduled window overlaps it (ends_at is exclusive). Pass starts_at and ends_at as ISO-8601 instants for a timed absence, or start_date, end_date and is_all_day: true for a whole-day absence; the day range is resolved to instant bounds in the organisation's configured timezone, with end_date inclusive of the last day.

post/v1/resources/{resourceId}/absences

Request

  • Base URL: https://api.workwing.io
  • URL: https://api.workwing.io/v1/resources/{resourceId}/absences
  • Auth: HTTP bearer

Path parameters

resourceIdstring uuid required

Headers

Idempotency-Keystring required

Unique per write, 1-256 printable ASCII characters. Retrying with the same key and the same request replays the original response for 24 hours. See Idempotency.

Request body

starts_atstring
ends_atstring
start_datestring
end_datestring
is_all_dayboolean

Response

Default Response

Changes

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