API → UnitConvert pressure units

Parameters

Name

Type

Req.

  • input_unit

    string
    required
    Possible values
    • atmospheres:  Atmospheres <https://en.wikipedia.org/wiki/Standard_atmosphere_(unit)>
    • bars:  Bars <https://en.wikipedia.org/wiki/Bar_(unit)>
    • hectopascals:  Hectopascals <https://en.wikipedia.org/wiki/Hectopascal>
    • kilopascals:  Kilopascals <https://en.wikipedia.org/wiki/Kilopascal>
    • millibars:  Millibars <https://en.wikipedia.org/wiki/Bar_(unit)>
    • pascals:  Pascals <https://en.wikipedia.org/wiki/Pascal_(unit)>
    • psi:  Pounds per square inch (PSI) - <https://en.wikipedia.org/wiki/Pound_per_square_inch>
  • output_unit

    string
    required
    Possible values
    • atmospheres:  Atmospheres <https://en.wikipedia.org/wiki/Standard_atmosphere_(unit)>
    • bars:  Bars <https://en.wikipedia.org/wiki/Bar_(unit)>
    • hectopascals:  Hectopascals <https://en.wikipedia.org/wiki/Hectopascal>
    • kilopascals:  Kilopascals <https://en.wikipedia.org/wiki/Kilopascal>
    • millibars:  Millibars <https://en.wikipedia.org/wiki/Bar_(unit)>
    • pascals:  Pascals <https://en.wikipedia.org/wiki/Pascal_(unit)>
    • psi:  Pounds per square inch (PSI) - <https://en.wikipedia.org/wiki/Pound_per_square_inch>
  • 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
      • atmospheres:  Atmospheres <https://en.wikipedia.org/wiki/Standard_atmosphere_(unit)>
      • bars:  Bars <https://en.wikipedia.org/wiki/Bar_(unit)>
      • hectopascals:  Hectopascals <https://en.wikipedia.org/wiki/Hectopascal>
      • kilopascals:  Kilopascals <https://en.wikipedia.org/wiki/Kilopascal>
      • millibars:  Millibars <https://en.wikipedia.org/wiki/Bar_(unit)>
      • pascals:  Pascals <https://en.wikipedia.org/wiki/Pascal_(unit)>
      • psi:  Pounds per square inch (PSI) - <https://en.wikipedia.org/wiki/Pound_per_square_inch>
    • output

      number
      optional
    • output_unit

      string
      optional
      Possible values
      • atmospheres:  Atmospheres <https://en.wikipedia.org/wiki/Standard_atmosphere_(unit)>
      • bars:  Bars <https://en.wikipedia.org/wiki/Bar_(unit)>
      • hectopascals:  Hectopascals <https://en.wikipedia.org/wiki/Hectopascal>
      • kilopascals:  Kilopascals <https://en.wikipedia.org/wiki/Kilopascal>
      • millibars:  Millibars <https://en.wikipedia.org/wiki/Bar_(unit)>
      • pascals:  Pascals <https://en.wikipedia.org/wiki/Pascal_(unit)>
      • psi:  Pounds per square inch (PSI) - <https://en.wikipedia.org/wiki/Pound_per_square_inch>
    • 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/pressure/{input_unit}/{output_unit}
$ curl "https://api.zoo.dev/unit/conversion/pressure/{input_unit}/{output_unit}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "completed_at": "2024-04-12T19:24:51.007Z",
  "created_at": "2024-04-12T19:24:51.007Z",
  "error": "MB",
  "id": "91b22b71-10a1-4c83-8e4d-fd9e6fa044ad",
  "input": 28,
  "input_unit": "kilopascals",
  "output": 12,
  "output_unit": "bars",
  "started_at": "2024-04-12T19:24:51.007Z",
  "status": "queued",
  "updated_at": "2024-04-12T19:24:51.007Z",
  "user_id": "488ed4d5-5445-4cf6-9ea3-a48dbf5cacf2"
}