Locks

The locking feature allows the block parking lot to receive new bookings.

The lock prevents starting or ending a new booking on a specific date.

Show locks

get

Show all the locks

Authorizations
Path parameters
parkingstring · uuidRequired

The parking uuid

Query parameters
viewstring · dateRequired

The date. Format: YYYY-MM-DD

Responses
200
The request has been successful
get
GET /v1/parkings/{parking}/locks?view=2025-06-25 HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*

No content

Add lock

post

Create a lock

Authorizations
Path parameters
parkingstring · uuidRequired

The parking uuid

Body
locked_atstring · dateRequired
Responses
200
The request has been successful
post
POST /v1/parkings/{parking}/locks HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 26

{
  "locked_at": "2025-06-25"
}

No content

Delete lock

delete

Remove a lock

Authorizations
Path parameters
parkingstring · uuidRequired

The parking uuid

Body
locked_atstring · dateRequired
Responses
200
The request has been successful
delete
DELETE /v1/parkings/{parking}/locks HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 26

{
  "locked_at": "2025-06-25"
}

No content

Last updated