POST Responses/{QuestionKey}
Add Responses to a Question
This operation will add new Responses to the Question, optionally autocoding them. It will never modify existing Responses.
For each QuestionResponse submitted, if the question does not have a response stored in Ascribe with the specified respondent id, then the response will be added.
Otherwise, the Response stored in Ascribe will not be modified. The QuestionResponse submitted will be ignored, and any codes that have been applied to the Response will be unchanged.
This operation allows the use of a Rule Set to modify or veto the Responses submitted, and automatically coding the responses as they are added.
If a Rule Set is specified it can be passed a Taxonomy for its use.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
QuestionKey |
The key of the Question, which must be an integer value. |
integer |
Required |
Body Parameters
The Responses to add.
PostResponsesRequestName | Description | Type | Additional information |
---|---|---|---|
responses |
The responses to be added or updated. |
Collection of QuestionResponse |
Required |
autoCodeTextMatch |
If true, this will attempt to AutoCode responses based on an exact (but case insensitive) text match with previously-coded responses. This AutoCode will execute first, followed by (if requested) Input ID matching and Regular Expression matching. |
boolean |
None. |
autoCodeInputId |
If set to True, it will attempt to Auto Code based on a code's Input ID (Closed ends and Other Specifies only). |
boolean |
None. |
autoCodeByRegex |
If set to True, it will attempt to Auto Code responses via the codes' Regular Expressions. |
boolean |
None. |
ruleSetKey |
Key of a Rule Set containing at least one 'Modify Response on Load' rule. |
integer |
None. |
taxonomyKey |
Key of a Taxonomy to pass to the Rule Set for its use. |
integer |
None. |
applyRuleSetToTranscription |
If true, the transcription field of each QuestionResponse is operated on by the Rule Set. |
boolean |
None. |
Response Information
Add Responses to a Question
This operation will add new Responses to the Question, optionally autocoding them. It will never modify existing Responses.
For each QuestionResponse submitted, if the question does not have a response stored in Ascribe with the specified respondent id, then the response will be added.
Otherwise, the Response stored in Ascribe will not be modified. The QuestionResponse submitted will be ignored, and any codes that have been applied to the Response will be unchanged.
This operation allows the use of a Rule Set to modify or veto the Responses submitted, and automatically coding the responses as they are added.
If a Rule Set is specified it can be passed a Taxonomy for its use.
Name | Description | Type | Additional information |
---|---|---|---|
codebookKey |
The key of the Codebook for this Question. |
integer |
Required |
responsesAdded |
The count of Responses added to the Question. |
integer |
Required |
existingResponsesUnchanged |
The count of existing Responses unchanged. |
integer |
Required |
responsesModifiedByRuleSet |
The count of responses modified by the Rule Set. |
integer |
Required |
responsesVetoedByRuleSet |
The count of responses vetoed by the Rule Set. |
integer |
Required |
responsesCodedByTextMatch |
The count of responses coded by text match. |
integer |
Required |
responsesCodedByInputId |
The count of responses coded by input ID. |
integer |
Required |
responsesCodedByRegex |
The count of responses coded by regular expression. |
integer |
Required |
addedResponses |
The responses added to the question as a result of the POST operation. |
Collection of AddedResponse |
Required |
errors |
If null the request was processed without error. If not null errors occurred while processing the request. The array contains the error messages. |
Collection of string |
None. |