Allows for a members Answers to a Demographic to be saved. All previous answers for a member for the supplied demographics will be deleted before the new Answers are saved.

Endpoint URL

http://api.clearvoicesurveys.com/api/v1/member/savedemographicanswers

Parameters

MemberGuid
globally unique identifier
ClearVoice's unique identifier for the member in your organization. MemberGuid or ExternalMemberId must be provided or a Http Status Code of 400 will be returned.
ExternalMemberId
string
Client's identifier for the member. MemberGuid or ExternalMemberId must be provided or a Http Status Code of 400 will be returned.
DemographicAnswers
Collection of SaveMemberDemographicAnswer
List of demographics and answers that will be saved for the supplied member.

Required

Example Request Data

{
  "MemberGuid": "06b21135-f777-4bd9-b979-305068282a0b",
  "ExternalMemberId": "sample string 2",
  "DemographicAnswers": [
    {
      "DemographicGuid": "aee91395-c943-4f65-9035-073b5145ba21",
      "AnswerGuid": "8517d602-1d73-4fc8-8a85-b9c8ad39de71",
      "GroupNumber": 64,
      "AnswerText": "sample string 5"
    },
    {
      "DemographicGuid": "aee91395-c943-4f65-9035-073b5145ba21",
      "AnswerGuid": "8517d602-1d73-4fc8-8a85-b9c8ad39de71",
      "GroupNumber": 64,
      "AnswerText": "sample string 5"
    }
  ]
}

Response Description

HTTP Status Code 204 will be returned when the operation completes successfully.