Add Selection
POST https://rest.webropolsurveys.com/api/v1/surveys/{{SurveyId}}/questions/selection
Adds a selection type question to the survey. Selection options can be defined in the request body as shown in the example request.
Request Body
{"QuestionSettings"=>{"IsMandatory"=>true}, "QuestionOptions"=>[{"Title"=>"Female"}, {"Title"=>"Male"}, {"Title"=>"Other/Prefer not to answer"}], "Name"=>"Select your gender", "QuestionOrderNumber"=>0}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: Created
{"QuestionIds":["f45ee848-860d-4b17-9be9-ec8337ae83cb"],"Message":"Questions created"}