API → Unit → Convert mass units
Parameters
Name
Type
Req.
Possible values
g
: Grams <https://en.wikipedia.org/wiki/Gram>kg
: Kilograms <https://en.wikipedia.org/wiki/Kilogram>lb
: Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
Possible values
g
: Grams <https://en.wikipedia.org/wiki/Gram>kg
: Kilograms <https://en.wikipedia.org/wiki/Kilogram>lb
: Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
Possible values
g
: Grams <https://en.wikipedia.org/wiki/Gram>kg
: Kilograms <https://en.wikipedia.org/wiki/Kilogram>lb
: Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
Possible values
g
: Grams <https://en.wikipedia.org/wiki/Gram>kg
: Kilograms <https://en.wikipedia.org/wiki/Kilogram>lb
: Pounds <https://en.wikipedia.org/wiki/Pound_(mass)>
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/mass/{input_unit}/{output_unit}$ curl "https://api.zoo.dev/unit/conversion/mass/{input_unit}/{output_unit}" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"completed_at": "2025-01-07T20:44:58.588Z",
"created_at": "2025-01-07T20:44:58.588Z",
"error": "otxHma1SsDDHI1ghYDt3YCe",
"id": "2c634d87-e2ff-4b89-89f0-ef53e2007dc7",
"input": 24,
"input_unit": "kg",
"output": 20,
"output_unit": "g",
"started_at": "2025-01-07T20:44:58.588Z",
"status": "in_progress",
"updated_at": "2025-01-07T20:44:58.588Z",
"user_id": "023786b6-86e2-4db6-803d-cc3c6a1ca8c9"
}