PATCH /routines/:id/routine_steps/:routine_step_id/assign_pitch

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

Assign product pitch 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

Body Required

Responses

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