Create question in SurveyMonkey
POST https://api.surveymonkey.net/v3/surveys/{{SURVEY_ID}}/pages/{{PAGE_ID}}/questions
Create a new question on a survey page.
The SurveyMonkey API documentation has a Run in Qodex button to import all of their endpoints into the Qodex app.
The second request in my Qodex Collection would be to POST
every question to my existing survey. For the authorization, create a new SurveyMonkey app. Under their Settings tab, select the scopes and permissions that your app will have.
](/assets/blogs/https://s3.amazonaws.com/Qodex-static-getQodex-com/Qodex-docs/surveymonkey_permissions.png)
On this same page, copy the access token and add this information as an environment variable called surveymonkey_token
under the environments editor. In this same manner, you will also need to update the SURVEY_ID
and PAGE_ID
environment variables, which you can now GET
using the other SurveyMonkey API endpoints.
](/assets/blogs/https://s3.amazonaws.com/Qodex-static-getQodex-com/Qodex-docs/surveymonkey_env_editor.png)
Under the Pre-request Script tab, let’s access the airtable records and format the question data in the way that the SurveyMonkey API requires, to be sent in the request body.
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |