Update item blockout date

Update an item's blockout date. First retrieve the current blockout from /api/facilities/resources/{resource}/blockouts/{id}, apply your changes, then send back the full object. For repeating blockouts, action selects which occurrences the edit applies to, and changeSchedule must be set to true when the schedules change.

Required permission: Full Write Facilities

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required
≥ 1

The id of the item

int32
required
≥ 1

The id of the blockout date

Body Params

The details of the blockout date

string | null
required

The name of the event.

date-time | null
required

When the event starts (UTC). When the event has time slots, this is the start of the earliest one.

date-time | null

When the event ends (UTC).

boolean | null

Whether the event runs all day rather than at specific times.

schedules
array of objects | null

The repeating schedule definitions for the event.

schedules
times
array of objects | null

The time slots for the event (UTC).

times
exceptions
object | null

For repeating events, dates added to or removed from the generated schedule (UTC).

string | null

For repeating events, which occurrences an edit applies to: all, future, or single. Defaults to only the event being edited.

boolean | null

Set to true when an edit changes the repeating schedules; otherwise the existing recurrence is kept.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses
200

OK

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json