PUT
/
v2
/
booking
/
lock
curl --request PUT \
  --url https://api.sonderplan.com/v2/booking/lock \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lock_created_id": 23487,
  "lock_expire_date": 1647662376
}'
{
  "success": {
    "id": 1
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
integer
required

The ID of the booking to lock

Body

application/json
Booking lock information

Used to lock bookings whilst editing is in progress

lock_created_id
integer
required

The ID of the user who will obtain the lock

Example:

23487

lock_expire_date
integer
required

UNIX timestamp of when the lock should end

Example:

1647662376

Response

200
application/json
Successful Operation
success
object