API → UnitConvert current units

Parameters

Name

Type

Req.

  • input_unit

    string
    required
    Possible values
    • amperes:  Amperes <https://en.wikipedia.org/wiki/Ampere>
    • microamperes:  Microamperes <https://en.wikipedia.org/wiki/Microampere>
    • milliamperes:  Milliamperes <https://en.wikipedia.org/wiki/Milliampere>
    • nanoamperes:  Nanoamperes <https://en.wikipedia.org/wiki/Nanoampere>
  • output_unit

    string
    required
    Possible values
    • amperes:  Amperes <https://en.wikipedia.org/wiki/Ampere>
    • microamperes:  Microamperes <https://en.wikipedia.org/wiki/Microampere>
    • milliamperes:  Milliamperes <https://en.wikipedia.org/wiki/Milliampere>
    • nanoamperes:  Nanoamperes <https://en.wikipedia.org/wiki/Nanoampere>
  • 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
      • amperes:  Amperes <https://en.wikipedia.org/wiki/Ampere>
      • microamperes:  Microamperes <https://en.wikipedia.org/wiki/Microampere>
      • milliamperes:  Milliamperes <https://en.wikipedia.org/wiki/Milliampere>
      • nanoamperes:  Nanoamperes <https://en.wikipedia.org/wiki/Nanoampere>
    • output

      number
      optional
    • output_unit

      string
      optional
      Possible values
      • amperes:  Amperes <https://en.wikipedia.org/wiki/Ampere>
      • microamperes:  Microamperes <https://en.wikipedia.org/wiki/Microampere>
      • milliamperes:  Milliamperes <https://en.wikipedia.org/wiki/Milliampere>
      • nanoamperes:  Nanoamperes <https://en.wikipedia.org/wiki/Nanoampere>
    • 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/current/{input_unit}/{output_unit}
$ curl "https://api.zoo.dev/unit/conversion/current/{input_unit}/{output_unit}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "completed_at": "2024-07-12T16:22:20.397Z",
  "created_at": "2024-07-12T16:22:20.397Z",
  "error": "Fkqed5ozylao5cbHyF1pU5UobjiLq",
  "id": "d3442c1f-1bbc-4eb7-8901-8d7cc860f614",
  "input": 17,
  "input_unit": "amperes",
  "output": 28,
  "output_unit": "milliamperes",
  "started_at": "2024-07-12T16:22:20.397Z",
  "status": "failed",
  "updated_at": "2024-07-12T16:22:20.397Z",
  "user_id": "ef4b916f-8afe-4e6a-87b9-3848cb7335cd"
}