Add Contact Form

POST https://rest.webropolsurveys.com/api/v1/surveys/{{SurveyId}}/questions/contactform

Adds a Contact Form type question to the survey. Contact Form options can be defined in the request body as shown in the example request.

Request Body

{"QuestionSettings"=>{"TextFieldSettings"=>{"<IsHorizontalPlacement>k__BackingField"=>true, "<SelectedOptionTitlePlacement>k__BackingField"=>"Left", "<TextFieldWidth>k__BackingField"=>0}, "IsMandatory"=>true}, "QuestionOptions"=>[{"Title"=>"Email"}, {"Title"=>"First Name"}, {"Title"=>"Last Name"}], "Name"=>"Please fill in your contact details", "QuestionOrderNumber"=>0}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;QuestionIds&quot;:[&quot;44ea6660-fa0c-4b84-b5e7-d6b26c8c80b2&quot;],&quot;Message&quot;:&quot;Questions created&quot;}