Usage of curl, ruby, node.js and PHP with Admin API

Usage of curl, ruby, node.js and PHP with Admin API

fju3000
Visitor
2 0 0

Hi there,

 

I'm starting to get familiar with the Admin API (and APIs in general). I used Postman to create and update a product. I did this using JSON in the request body. Is this okay to do? Looks something like this:

 

{
    "variant": {
        "id"42352258758258,
        "product_id"7574458790322,
        "weight"5.3,
        "weight_unit""kg"
    }
}

 

However, I don't know what this can be used for? Would be great if someone could shortly explain.

fju3000_0-1657699368398.png

 

Thanks!

Replies 0 (0)