PATCH /routines/:id/routine_steps/:routine_step_id/assign_product

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

Assign product associated with 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

Body Required

Responses

PATCH /routines/{id}/routine_steps/{routine_step_id}/assign_product
curl \
 -X PATCH https://api.cosmily.com/api/v1/routines/{id}/routine_steps/{routine_step_id}/assign_product \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"product_id":42}'
Request example
{
  "product_id": 42
}
Response examples (201)
{
  "data": [
    {
      "id": 1,
      "routine_id": 1,
      "product_id": 1,
      "product_tutorial_id": 1,
      "product_category_id": 1,
      "product_pitch_id": 1,
      "status": "completed",
      "created_at": "2021-10-04T13:24:22.000Z",
      "updated_at": "2021-11-13T20:23:18.000Z"
    }
  ]
}