PUT to /api/accounts/ACCOUNT_CODE/subscribers/ENCODED_SUBSCRIBER_ID/responses.xml
<responses type="array"> <!-- Subscriber saw this question and did not answer it --> <response> <question-answer-text nil="true"></question-answer-text> <question-id>####</question-id> <answer-id nil="true"></answer-id> </response> <!-- subscriber saw this question and answered with two responses --> <response> <question-answer-text>ENTER ANSWER TEXT</question-answer-text> <question-id>####</question-id> <answer-id>####</answer-id> </response> <response> <question-answer-text>ENTER ANSWER TEXT</question-answer-text> <question-id>####</question-id> <answer-id>####</answer-id> </response> </responses>
<responses> |
This field must include the type="array" attribute. All other elements are nested within this one. Enter a list of responses. The list of responses you include will completely replace the existing list of responses currently saved for the subscriber. To delete all responses, include an empty responses array. You will enter any responses you want to include in each nested <response> field. |
<response> | You can include multiple <response> fields in your input; one for each question to be answered for this subscriber. |
<question-answer-text> |
This field contains the text for the subscriber's answer, if this question requires a free-text response. If the question is multiple-choice, then only the <answer-id> element is required. The <question-answer-text> element is ignored. Because this field can be left empty, the nil="true" attribute is also required. |
<question-id> | This field contains the Base64-encoded ID for the question you want to include. This ID is specific to the subscriber. Use the List All Responses method to find question IDs (returned in the<to param> element). |
<answer-id> |
This field contains the Base64-encoded ID for the answer you want to include. Use the Read a Single Question method to find IDs for this element (returned in the <to param> element).
|
A successful operation will have a 200 OK response status and an empty response body.
Reference subscriber error codes
Was this page helpful? Can't find what you need? Let us know