Path parameters
-
ID of the resource to fetch
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"
}
]
}
Response examples (200)
{
"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,
"effects": [
{
"effect": "effect",
"ingredient_ids": "[1,2]"
}
],
"user_id": 1,
"created_at": "2021-10-04T13:24:22.000Z",
"product_id": 1,
"updated_at": "2021-11-13T20:23:18.000Z",
"coupon_code": "new_coupon_code",
"affiliate_url": "http://some.url.com"
},
"product_category_id": 1,
"product_tutorial_id": 1
}
]
}