PATCH /routines/:id/routine_steps/:routine_step_id/assign_product_tutorial
Assign product tutorial to a routine step
Path parameters
-
ID of the resource to fetch
-
ID of the routine step to fetch
Body Required
-
product_tutorial_id integer
PATCH
/routines/{id}/routine_steps/{routine_step_id}/assign_product_tutorial
curl \
-X PATCH https://api.cosmily.com/api/v1/routines/{id}/routine_steps/{routine_step_id}/assign_product_tutorial \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"product_tutorial_id":42}'
Request example
{
"product_tutorial_id": 42
}
Request examples
{
"product_tutorial_id": 42
}
Response examples (201)
{
"data": [
{
"id": 42,
"routine_id": 42,
"product_id": 42,
"product_tutorial_id": 42,
"product_category_id": 42,
"product_pitch_id": 42,
"status": "string",
"created_at": "string",
"updated_at": "string"
}
]
}
Response examples (201)
{
"data": [
{
"id": 42,
"routine_id": 42,
"product_id": 42,
"product_tutorial_id": 42,
"product_category_id": 42,
"product_pitch_id": 42,
"status": "string",
"created_at": "string",
"updated_at": "string"
}
]
}