Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
Create product response.
The response is of type object
.
curl --request POST \
--url https://base_url/api/v1/products/:id \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "SunShield Pro UV-Blocking Sunglasses",
"tax_code": "TPP",
"description": "<string>"
}'
{
"message": "Successfully updated product."
}
Update an existing product by id.
curl --request POST \
--url https://base_url/api/v1/products/:id \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "SunShield Pro UV-Blocking Sunglasses",
"tax_code": "TPP",
"description": "<string>"
}'
{
"message": "Successfully updated product."
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Create product response.
The response is of type object
.