# Availability.set

URL: /business/events/Availability.set · Id: `event:Availability.set`

> Emitted each time an Availability is set.

[Availability.set](/business/nouns/availability/set) emits `Availability.set` when it completes on an [Availability](/business/nouns/availability).

| Property | Value |
| --- | --- |
| Emitted by | [Availability.set](/business/nouns/availability/set) |
| Noun | [Availability](/business/nouns/availability) |
| Wakes | None. |

### Payload
Each delivery is an [Event](/business/nouns/event) record. `data` holds what [Availability.set](/business/nouns/availability/set) returns.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | `string` | Yes | `Availability.set`. |
| `at` | `datetime` | Yes | When it happened. |
| `seq` | `integer` | No | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. |
| `data` | `json` | Yes | The Thing as the Action left it. |
| `data.availability` | [Availability](/business/nouns/availability) | Yes | The Availability, replacing the Worker’s last one. |
| `data.availability.worker` | [Worker](/business/nouns/worker) | Yes | Who is booked: a Human, or an Agent that takes calls. |
| `data.availability.hours` | `json` | Yes | Open hours by weekday, in its time zone. |
| `data.availability.timezone` | `string` | Yes | An IANA time zone. |
| `data.availability.calendars` | `string[]` | No | Connected calendars whose busy times it subtracts. |
| `data.availability.buffer` | `integer` | No | Minutes kept free before and after each Meeting. |
| `data.availability.notice` | `integer` | No | The fewest hours ahead a Meeting can be booked. |

### Example
```json
{
  "$id": "https://api.sb/leaseline.app/events/evt_vWokBxry2C",
  "$type": "Event",
  "name": "Availability.set",
  "at": "2026-10-22T12:00:00Z",
  "data": {
    "availability": {
      "$id": "https://api.sb/leaseline.app/availabilities/availability_8Zj0a7vvRl",
      "$type": "Availability",
      "worker": "worker_whZFpOKWIV",
      "hours": {
        "mon": [
          "09:00-12:00"
        ],
        "thu": [
          "13:00-17:00"
        ]
      },
      "timezone": "America/Chicago",
      "calendars": [
        "Example calendars"
      ],
      "buffer": 10,
      "notice": 12
    }
  },
  "seq": 1680
}
```