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-09T18:27:13.468Z",
"created_at": "2025-01-09T18:27:13.468Z",
"error": "1s26kSoqqGLX",
"id": "109c2760-aaf5-4633-a654-0b79cf4917ff",
"input": 26,
"input_unit": "kg",
"output": 13,
"output_unit": "kg",
"started_at": "2025-01-09T18:27:13.468Z",
"status": "uploaded",
"updated_at": "2025-01-09T18:27:13.468Z",
"user_id": "32fb7034-02a7-43c3-9070-1ee8e1e95608"
}