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.

PATCHhttps://api.airgarage.com/rentals/{uuid}

Path parameters

NameTypeDescription
uuidRequiredstringUUID of the rental, returned when it was created.

Body parameters

NameTypeDescription
platesRequiredstring[]One or more plate strings. This replaces the plates currently on the rental.
state(optional)stringTwo-letter license plate state, applied to the updated car(s).

Headers

NameTypeDescription
X-Api-KeyRequiredstringYour access token.
Example requestbash
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"}'
200 response (truncated)json
{
  "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.
  • 400plates was 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.