GET /users/:id/skin_profile/survey

GET /users/{id}/skin_profile/survey

Returns an array of all survey questions.

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Responses

  • successful operation

    Hide response attribute Show response attribute object
  • Bad Request

  • Authorization information is missing or invalid.

  • Unprocessable Entity

  • Server Error

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."
      }
    ]
  }
}