PUT api/travel/day/traveldate/lock/{lockID}/refresh

Refreshes an existing travel date lock by extending its duration. Updates the expiration time of the lock to the current time plus the specified duration.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lockID

The unique identifier of the lock to refresh.

integer

Required

Body Parameters

The new duration to extend the lock. Sent in the request body as a TimeSpan (e.g., "02:00:00" for 2 hours).

time interval

Request Formats

application/json, text/json, application/javascript

Sample:
"00:00:00.1234567"

application/xml, text/xml

Sample:
<TimeSpan xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TimeSpan'.

Response Information

Resource Description

Returns HTTP 204 (No Content) if the lock was successfully refreshed

IHttpActionResult

None.

Response Formats

application/json, text/json, application/javascript

Sample:

Sample not available.