> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TimeOffOptions

Options for [timeOff](./timeOff).

At least one time scoping field is required (`dayOfWeek`, `dateRange`,
`dates`, or `recurringPeriods`). Use `from`/`until` to block only part
of a day.

## Properties

<ResponseField name="appliesTo" type="appliesTo?: string | string[]">
  Who this rule applies to (role name, skill name, or member ID).
</ResponseField>

<ResponseField name="dateRange" type="dateRange?: object">
  Restrict to a date range.

  <Expandable title="properties">
    <ResponseField name="end" type="string" required />

    <ResponseField name="start" type="string" required />
  </Expandable>
</ResponseField>

<ResponseField name="dates" type="dates?: string[]">
  Restrict to specific dates (YYYY-MM-DD).
</ResponseField>

<ResponseField name="dayOfWeek" type="dayOfWeek?: readonly [DayOfWeek, DayOfWeek]">
  Restrict to specific days of the week.
</ResponseField>

<ResponseField name="from" type="from?: TimeOfDay">
  Off from this time until end of day.
</ResponseField>

<ResponseField name="priority" type="priority?: Priority">
  Defaults to `"MANDATORY"`.
</ResponseField>

<ResponseField name="recurringPeriods" type="recurringPeriods?: [RecurringPeriod, ...RecurringPeriod[]]">
  Restrict to recurring calendar periods.
</ResponseField>

<ResponseField name="until" type="until?: TimeOfDay">
  Off from start of day until this time.
</ResponseField>
