GET /routines/:id/routine_steps

GET /routines/{id}/routine_steps

Returns routine steps

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Responses

GET /routines/{id}/routine_steps
curl \
 -X GET https://api.cosmily.com/api/v1/routines/{id}/routine_steps \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "id": 1,
      "routine_id": 1,
      "product_id": 1,
      "product_tutorial_id": 1,
      "product_category_id": 1,
      "product_pitch": {
        "id": 1,
        "product_id": 1,
        "user_id": 1,
        "effects": [
          {
            "effect": "effect",
            "ingredient_ids": "[1,2]"
          }
        ],
        "affiliate_url": "http://some.url.com",
        "coupon_code": "new_coupon_code",
        "created_at": "2021-10-04T13:24:22.000Z",
        "updated_at": "2021-11-13T20:23:18.000Z"
      },
      "status": "completed",
      "created_at": "2021-10-04T13:24:22.000Z",
      "updated_at": "2021-11-13T20:23:18.000Z"
    }
  ]
}