The following API calls are currently available for the SurveyOption object:
For info on returned fields and example returns go to SurveyOption Returned Fields.
GET LIST - Get a list of all of your survey options for a specified survey question. View Example Return.
https://api.alchemer.com/v5/survey/123456/surveyquestion/1/surveyoption
Parameters | Example | Required |
---|---|---|
Authentication Credentials | api_token=abcd12345&api_token_secret=abcd12345 | True |
GET SURVEYOPTION - Get information about a specified survey option. View Example Return.
https://api.alchemer.com/v5/survey/123456/surveyquestion/1/surveyoption/10001
Parameters | Example | Required |
---|---|---|
Authentication Credentials | api_token=abcd12345&api_token_secret=abcd12345 | True |
CREATE SURVEYOPTION - Create a new survey option.
https://api.alchemer.com/v5/survey/123456/surveypage/1/surveyquestion/1/surveyoption?_method=PUT&title=Option Title&value=Reporting Value
Parameters | Example | Required |
---|---|---|
Authentication Credentials | api_token=abcd12345&api_token_secret=abcd12345 | True |
title | option title text | True |
value | reporting value | True |
after | id of option to follow | False |
Properties | Example | Required |
properties[dependent] | Question IDs for trigger questions (comma separated) | False |
properties[other] | true | False |
properties[requireother] | true | False |
properties[na] | true | False |
properties[none] | true | False |
properties[all] | true | False |
properties[fixed] | true | False |
properties[heatmap-color]* | ff0000 (this is a hex code without the #) | False |
UPDATE SURVEYOPTION - Update a specified surveyoption.
https://api.alchemer.com/v5/survey/123456/surveyquestion/1/surveyoption/10001?_method=POST
Parameters | Example | Required |
---|---|---|
Authentication Credentials | api_token=abcd12345&api_token_secret=abcd12345 | True |
title | option title text | False |
value | reporting value | False |
after | id of option to follow | False |
Properties | Example | Required |
properties[dependent] | Question IDs for trigger questions (comma separated) | False |
properties[other] | true | False |
properties[requireother] | true | False |
properties[na] | true | False |
properties[none] | true | False |
properties[all] | true | False |
properties[fixed] | true | False |
properties[heatmap-color]* | f06486 (this is a hex code without the #) | False |
DELETE SURVEYOPTION - Delete a specified survey option.
https://rapi.alchemer.com/v5/survey/123456/surveyquestion/1/surveyoption/10001?_method=DELETE
Parameters | Example | Required |
---|---|---|
Authentication Credentials | api_token=abcd12345&api_token_secret=abcd12345 | True |