{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","properties":{"data":{"additionalProperties":false,"properties":{"driver":{"allOf":[{"additionalProperties":false,"description":"Information about the driver such as the age and country of residence.","properties":{"age":{"description":"The age of the driver.","minimum":18,"type":"integer"},"residence_country_code":{"description":"The ISO 3166-1 alpha-2 country code of the driver's country of residence.","pattern":"^[A-Z]{2}$","type":"string","maxLength":16000}},"required":["age","residence_country_code"],"type":"object","maxProperties":100},{"description":"The driver this search is for."}]},"dropoff_date":{"description":"The date when the car will be dropped off.","format":"date","type":"string","maxLength":16000},"dropoff_location":{"allOf":[{"additionalProperties":false,"description":"A search location with geographic coordinates and search radius.","properties":{"geographic_coordinates":{"additionalProperties":false,"description":"The geographic coordinates of the location.","properties":{"latitude":{"description":"The latitude coordinate.","maximum":90,"minimum":-90,"type":"number"},"longitude":{"description":"The longitude coordinate.","maximum":180,"minimum":-180,"type":"number"}},"required":["latitude","longitude"],"type":"object","maxProperties":100},"radius":{"description":"Search radius in kilometres around the coordinates.","maximum":10,"minimum":1,"type":"integer"}},"required":["geographic_coordinates"],"type":"object","maxProperties":100},{"description":"The location where the car will be dropped off."}]},"dropoff_time":{"description":"The time the car will be dropped off, in HH:MM format.","pattern":"^\\d{2}:\\d{2}$","type":"string","maxLength":16000},"pickup_date":{"description":"The date the car will be picked up.","format":"date","type":"string","maxLength":16000},"pickup_location":{"allOf":[{"additionalProperties":false,"description":"A search location with geographic coordinates and search radius.","properties":{"geographic_coordinates":{"additionalProperties":false,"description":"The geographic coordinates of the location.","properties":{"latitude":{"description":"The latitude coordinate.","maximum":90,"minimum":-90,"type":"number"},"longitude":{"description":"The longitude coordinate.","maximum":180,"minimum":-180,"type":"number"}},"required":["latitude","longitude"],"type":"object","maxProperties":100},"radius":{"description":"Search radius in kilometres around the coordinates.","maximum":10,"minimum":1,"type":"integer"}},"required":["geographic_coordinates"],"type":"object","maxProperties":100},{"description":"The location where the car will be picked up."}]},"pickup_time":{"description":"The time the car will be picked up, in HH:MM format.","pattern":"^\\d{2}:\\d{2}$","type":"string","maxLength":16000}},"required":["pickup_date","pickup_time","dropoff_date","dropoff_time","pickup_location","dropoff_location","driver"],"type":"object","maxProperties":100},"deviceIp":{"type":"string","maxLength":45},"deviceUserAgent":{"type":"string","maxLength":1000}},"required":["data"],"additionalProperties":false},"name":"Cars: Search for Cars","id":"duffel.api.cars.search.create","example":{"data":{"pickup_time":"10:30","pickup_location":{"radius":5,"geographic_coordinates":{"longitude":-0.1278,"latitude":51.5074}},"pickup_date":"2024-01-15","dropoff_time":"15:00","dropoff_location":{"radius":5,"geographic_coordinates":{"longitude":-0.1278,"latitude":51.5074}},"dropoff_date":"2024-01-20","driver":{"residence_country_code":"US","age":30}}},"maxRequests":1,"summary":false}}