Limit advance timeslot reservations

Available in versions: 2022 and later

Description

Limits how far in the future users can reserve timeslots.

URL

Copy code
/Admin/rest/v1/configuration

Remarks

This API should be authorized for the Application, Tenant, and Site Admin permission levels.

HTTP method

GET: Returns the limit on how far in the future users can reserve timeslot.

PATCH: Updates the limit on how far in the future users can reserve timeslot.

Request

Headers:

One of the following:

  • Content-Type: application/xml

  • Content-Type: application/json

Cookies:

ADM_LWSSO={AdmLwssoCookie};

Request body:

  • GET: No request body.

  • PATCH: An XML or JSON describing how far in the future users can reserve timeslot in days.

Request examples:

Copy code
XML example - PATCH:
<Configuration>  
<FutureReservationNumberOfDays>17</FutureReservationNumberOfDays>
</Configuration>
Copy code
JSON example - PATCH:
{    
    "FutureReservationNumberOfDays": 17
}

Response

Headers:

One of:

  • Accept: application/xml

  • Accept: application/json

Cookies:

None

HTML return code:

One of the HTTP return codes.

HTML body:

Returns the data on the entity in the response.

Response examples:

Copy code
XML example:
<Configuration>
    <FutureReservationNumberOfDays>17</FutureReservationNumberOfDays>
</Configuration>
Copy code
JSON example:
{    
     "FutureReservationNumberOfDays": 17
}