Rentals API
Update rental plates
Update the license plate(s) on a rental you created — for example, to replace a TEMP placeholder plate once you know the driver's real plate. Keeping plates current lets enforcement match the driver's car to their active rental.
PATCH
https://api.airgarage.com/rentals/{uuid}Path parameters
| Name | Type | Description |
|---|---|---|
uuidRequired | string | UUID of the rental, returned when it was created. |
Body parameters
| Name | Type | Description |
|---|---|---|
platesRequired | string[] | One or more plate strings. This replaces the plates currently on the rental. |
state(optional) | string | Two-letter license plate state, applied to the updated car(s). |
Headers
| Name | Type | Description |
|---|---|---|
X-Api-KeyRequired | string | Your access token. |
curl -X PATCH https://api.airgarage.com/rentals/hT4kQnW2xLmZ8vRbYc3dFa/ \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"plates": ["M62WAW"], "state": "PA"}'{
"uuid": "hT4kQnW2xLmZ8vRbYc3dFa",
"spot_uuid": "dB2YV5Ngco4f7uKjdnGqgQ",
"spot_name": "Church of All Saints",
"renter_email": "driver@example.com",
"rental_type": "monthly",
"start_date": 1625167463,
"end_date": null,
"source": "YourIntegration",
"cars_detail": [
{ "pk": 812, "plate": "M62WAW", "state": "PA", "country": "US" }
],
...
}Responses
- 200Plates updated. Returns the full rental, in the same format as Get rental.
- 400
plateswas missing, empty, or not an array. - 401Missing or invalid API key.
- 404No rental with that UUID exists under your API key. You can only update rentals you created.