API → Unit → Convert length units
Parameters
Name
Type
Req.
Possible values
cm
: Centimeters <https://en.wikipedia.org/wiki/Centimeter>ft
: Feet <https://en.wikipedia.org/wiki/Foot_(unit)>in
: Inches <https://en.wikipedia.org/wiki/Inch>m
: Meters <https://en.wikipedia.org/wiki/Meter>mm
: Millimeters <https://en.wikipedia.org/wiki/Millimeter>yd
: Yards <https://en.wikipedia.org/wiki/Yard>
Possible values
cm
: Centimeters <https://en.wikipedia.org/wiki/Centimeter>ft
: Feet <https://en.wikipedia.org/wiki/Foot_(unit)>in
: Inches <https://en.wikipedia.org/wiki/Inch>m
: Meters <https://en.wikipedia.org/wiki/Meter>mm
: Millimeters <https://en.wikipedia.org/wiki/Millimeter>yd
: Yards <https://en.wikipedia.org/wiki/Yard>
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
cm
: Centimeters <https://en.wikipedia.org/wiki/Centimeter>ft
: Feet <https://en.wikipedia.org/wiki/Foot_(unit)>in
: Inches <https://en.wikipedia.org/wiki/Inch>m
: Meters <https://en.wikipedia.org/wiki/Meter>mm
: Millimeters <https://en.wikipedia.org/wiki/Millimeter>yd
: Yards <https://en.wikipedia.org/wiki/Yard>
Possible values
cm
: Centimeters <https://en.wikipedia.org/wiki/Centimeter>ft
: Feet <https://en.wikipedia.org/wiki/Foot_(unit)>in
: Inches <https://en.wikipedia.org/wiki/Inch>m
: Meters <https://en.wikipedia.org/wiki/Meter>mm
: Millimeters <https://en.wikipedia.org/wiki/Millimeter>yd
: Yards <https://en.wikipedia.org/wiki/Yard>
Possible values
queued
: The async API call is queued.uploaded
: The async API call was uploaded to be converted.in_progress
: The async API call is in progress.completed
: The async API call has completed.failed
: The async API call has failed.
get
/unit/conversion/length/{input_unit}/{output_unit}$ curl "https://api.zoo.dev/unit/conversion/length/{input_unit}/{output_unit}" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"completed_at": "2025-01-09T18:27:14.909Z",
"created_at": "2025-01-09T18:27:14.909Z",
"error": "d0DneqrvVkzaD6cAHC6rkcRQ",
"id": "63bf9086-605c-4787-a848-50b89b053994",
"input": 32,
"input_unit": "in",
"output": 25,
"output_unit": "ft",
"started_at": "2025-01-09T18:27:14.909Z",
"status": "uploaded",
"updated_at": "2025-01-09T18:27:14.909Z",
"user_id": "c1faf53f-f2b9-4c7e-8193-5dfaf2e81edb"
}