POST /my/survey_answers

POST /my/survey_answers

Creates a survey answer

Body Required

Responses

POST /my/survey_answers
curl \
 -X POST https://api.cosmily.com/api/v1/my/survey_answers \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"response":["male"],"identifier":"gender"}'
Request example
{
  "response": [
    "male"
  ],
  "identifier": "gender"
}
Request examples
{
  "response": [
    "male"
  ],
  "identifier": "gender"
}
Response examples (200)
{
  "data": {
    "id": 42,
    "user_id": 42,
    "identifier": "string",
    "response": [
      "string"
    ],
    "survey_uuid": "string",
    "updated_at": "string"
  }
}
Response examples (200)
{
  "data": {
    "id": 42,
    "user_id": 42,
    "identifier": "string",
    "response": [
      "string"
    ],
    "survey_uuid": "string",
    "updated_at": "string"
  }
}