POST
/
reservations
/
{reservation}
curl --request POST \
  --url https://api.chargeapi.co/v1/reservations/{reservation} \
  --header 'Content-Type: application/json' \
  --data '{
  "ideal_start": 1711933200
}'
{
  "id": "<string>",
  "object": "reservation",
  "cancellation_policy": {
    "free_until_before": 123,
    "type": "free_cancellation"
  },
  "charging_station": "<string>",
  "confirmed_at": 123,
  "connector_type": [
    "<string>"
  ],
  "created": 123,
  "currency": "<string>",
  "driver": "<string>",
  "earliest_start": 123,
  "failed_reason": "no_available_connectors",
  "ideal_end": 123,
  "ideal_start": 123,
  "latest_end": 123,
  "location": {
    "latitude": 123,
    "longitude": 123,
    "radius": 123
  },
  "metadata": {},
  "payment_method": "<string>",
  "reservation_fee": 123,
  "reserved_end": 123,
  "reserved_start": 123,
  "status": "pending",
  "updated": 123,
  "vehicle": "<string>"
}

Path Parameters

reservation
string
required

ID of the reservation to update.

Body

application/json

Response

200
application/json

Returns the updated Reservation object reflecting your changes. Raises an error if the reservation is already confirmed, cancelled, or otherwise unmodifiable.