Update Availability
Update an existing availability.
πΉ Endpointβ
PUT /api/v2/availabilities/{id}
π Authenticationβ
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | Must be application/json |
| Authorization | Yes | Format: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature |
π Updatable Fieldsβ
| Field | Type | Description |
|---|---|---|
name | string | Display name |
weeklySchedule | object | Map of 0..6 β array of {startTime, endTime} |
unavailableDates | array | Array of {startAt, endAt} ISO date-times |
overrides | object | Map of date (YYYY-MM-DD) β array of time intervals |
serviceIds | string[] (UUID) | Services linked to this availability |
Note: calendarId is immutable after creation.
π§© Examplesβ
curl -X PUT "https://openapi.onlive.site/api/v2/availabilities/1610c525-f19a-40d0-8cd1-03daba3d2d98" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature" \
-d '{
"name": "Revised Office Hours",
"weeklySchedule": {
"1": [
{
"startTime": "08:00",
"endTime": "16:00"
}
]
},
"overrides": {
"2025-12-25": [
{
"startTime": "10:00",
"endTime": "14:00"
}
]
}
}'
π€ Response (200 OK)β
Returns the updated Availability object. See Availability Properties.