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 (while multi-campus is on, only at a location you can write to, or on an event you administer; otherwise 403); without it, only an administrator or organizer of the associated event can (otherwise 403). While multi-campus is on, or an organization limit binds with multi-campus off, an administrator of the event may place the request at what the event admits: its campuses and the venues of its organizations, or for an event with no campuses and no organization every location (while multi-org is on, a limited caller gets only the locations of the organizations they reach). Beyond that, a holder of Full Write Facilities needs the permission at the location; anyone else may use a venue while multi-org is off, and another location must be inside their limit or, with campus permission overrides and no limit, where they hold events write. Otherwise 400. The request's current location always passes.

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 or venue the booking is at; the organization is set only when it is a campus (read-only). 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. A missing or unknown event returns 404 Not Found, ahead of any validation of the rest of the body.

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