GET /users/:id/skin_profile/survey
Returns an array of all survey questions.
Path parameters
-
ID of the resource to fetch
GET /users/{id}/skin_profile/survey
curl \
-X GET https://api.cosmily.com/api/v1/users/{id}/skin_profile/survey \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"name": "routine_time_commitment",
"display": "How much time do you set aside to take care of your skin before bed?",
"answers": [
{
"val": "short",
"display": "Less than 5 minutes."
},
{
"val": "medium",
"display": "5 to 10 minutes."
},
{
"val": "long",
"display": "More than 10 minutes."
}
]
}
}
Response examples (200)
{
"data": {
"name": "routine_time_commitment",
"display": "How much time do you set aside to take care of your skin before bed?",
"answers": [
{
"val": "short",
"display": "Less than 5 minutes."
},
{
"val": "medium",
"display": "5 to 10 minutes."
},
{
"val": "long",
"display": "More than 10 minutes."
}
]
}
}