Update facility request

Full update: rooms and items omitted from the body are removed from the request. First retrieve the current request from /api/facilities/requests/{id}, apply your changes, then send back the full object. Changing the request's times resets every line to pending. Send either start and end or the church-zone twins startDate, startTime, endDate and endTime; start and end must be omitted for the twins to be used, since an instant that is present wins and the twins are ignored. With the Full Write Facilities permission you can edit any request; otherwise only the associated event's organizer can.

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 request

Body Params

The details of the request

campus
object | null

The campus the booking is at. Only the id is used on writes.

event
object | null

The event the booking is for. Only the id is used on writes; an edit keeps the request's existing event.

date-time | null

When the requested booking starts (UTC). For a single-day event, the time of day is applied to the event's day. On writes, send either start and end or the church-zone twins; a request that carries start or end is read as instant-based and the twins are ignored.

date-time | null

When the requested booking ends (UTC). For a single-day event, the time of day is applied to the event's day, or to the following day when it is earlier than the start time. On writes, send either start and end or the church-zone twins; a request that carries start or end is read as instant-based and the twins are ignored.

date | null

The calendar day the booking starts, in the church's time zone (yyyy-MM-dd). Read: filled from start. Write: with startTime, composes start when start and end are omitted; required for a twin-only write.

string | null

The wall-clock time the booking starts, in the church's time zone (HH:mm). 00:00 when omitted beside startDate.

date | null

The calendar day the booking ends, in the church's time zone (yyyy-MM-dd). Read: filled from end. Write: defaults to startDate when omitted.

string | null

The wall-clock time the booking ends, in the church's time zone (HH:mm). 00:00 when omitted beside endDate.

string | null

The request's setup notes.

rooms
array of objects | null

The rooms requested. At least one room or item is required. Omitted lines are removed from the request on edit.

rooms
items
array of objects | null

The items requested. At least one room or item is required. Omitted lines are removed from the request on edit.

items
string | null

For a request on a repeating event, also apply the edit to all other requests in the series, or only future ones. Omit to update just this request.

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