PATCH /product_tutorials/:id/set_quantity
Update product tutorial measurement fields
Path parameters
-
ID of the resource to fetch
Body Required
-
ID of Unit of Measurement
-
Number of Units of Measurements
PATCH
/product_tutorials/{id}/set_quantity
curl \
-X PATCH https://api.cosmily.com/api/v1/product_tutorials/{id}/set_quantity \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"measurement_id":42,"measurement_value":42}'
Request example
{
"measurement_id": 42,
"measurement_value": 42
}
Request examples
{
"measurement_id": 42,
"measurement_value": 42
}
Response examples (201)
{
"data": {
"id": 42,
"product_id": 42,
"user_id": 42,
"unit_of_measurement_display": "string",
"measurement_value": "string",
"general_info": "string",
"status": "string",
"created_at": "string",
"updated_at": "string"
}
}
Response examples (201)
{
"data": {
"id": 42,
"product_id": 42,
"user_id": 42,
"unit_of_measurement_display": "string",
"measurement_value": "string",
"general_info": "string",
"status": "string",
"created_at": "string",
"updated_at": "string"
}
}