API → UnitConvert length units

Parameters

Name

Type

Req.

  • input_unit

    string
    required
    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>
  • output_unit

    string
    required
    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>
  • value

    number
    required

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • completed_at

      string / ISO-8601
      optional
    • created_at

      string / ISO-8601
      optional
    • error

      string
      optional
    • id

      string / UUID
      optional
    • input

      number
      optional
    • input_unit

      string
      optional
      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>
    • output

      number
      optional
    • output_unit

      string
      optional
      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>
    • started_at

      string / ISO-8601
      optional
    • status

      string
      optional
      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.
    • updated_at

      string / ISO-8601
      optional
    • user_id

      string / UUID
      optional
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": "2024-07-12T16:22:22.281Z",
  "created_at": "2024-07-12T16:22:22.281Z",
  "error": "KgzM7J24Fg3s9PEwQEwxzpBKf",
  "id": "781def1a-6d5e-449f-997a-5f4059683f78",
  "input": 22,
  "input_unit": "yd",
  "output": 2,
  "output_unit": "ft",
  "started_at": "2024-07-12T16:22:22.281Z",
  "status": "in_progress",
  "updated_at": "2024-07-12T16:22:22.281Z",
  "user_id": "fe9b1057-2730-449f-9f92-270090b7a21c"
}