PATCH /routines/:id/routine_steps/:routine_step_id/assign_product_tutorial

PATCH /routines/{id}/routine_steps/{routine_step_id}/assign_product_tutorial

Assign product tutorial to a routine step

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

  • routine_step_id integer(int64) Required

    ID of the routine step to fetch

application/json

Responses

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
}
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"
    }
  ]
}