Publishing the Survey
Last updated
Was this helpful?
Last updated
Was this helpful?
The purpose of this endpoint is to publish the survey and distribute it to the Responova Platform, ensuring that the surveys are properly validated, stored, and distributed according to the specified criteria. The process includes handling both basic and additional survey criteria, distributing the survey, and sending notifications as necessary.
surveyId:
Type: String
Description: Partner survey unique identifier. (required)
surveyName:
Type: String
Description: Partner survey name. (required)
surveyUrl:
Type: String
Description: Partner survey URL. (required)
quota:
Type: Integer
Description: Quota for SIR Respondent. (required)
rewardAmount:
Type: Integer
Description: The amount of reward for completing the survey. (required)
basicCriteria:
Type: Object
Description: Contains the basic filtering criteria for respondents. (required)
gender:
Type: Array[String]
Description: Specifies the allowed genders for respondents. At least one basic attribute is mandatory.
Possible values:
Female
Male
ageMin:
Type: Integer
Description: Minimum age of respondents. At least one basic attribute is mandatory.
ageMax:
Type: Integer
Description: Maximum age of respondents. At least one basic attribute is mandatory.
domicile:
Type: Object
Description: Geographic criteria of the respondent. At least one attribute inside domicile is required if domicile sent. The full list of our valid domicile can be found here.
SES:
Type: Array[String]
Description: Socioeconomic status criteria for respondents. At least one basic attribute is mandatory.
Possible value:
Upper: We will map it into Upper 1 and Upper 2.
Middle: We will map it into Middle 1 and Middle 2.
Lower: We will map it into Lower 1 and Lower 2.
additionalCriteria:
Type: Array[Object]
Description: Additional custom filtering criteria for respondents. This attribute needs to be sent if the survey requires additional criteria beyond the basicCriteria. (optional)
criteriaKey:
Type: String
Description: Key for additional filtering criteria. (required if additional criteria exist)
question:
Type: String
Description: The question used to apply the additional filter. (required if additional criteria exist)
type:
Type: String
Description: Specifies the type of additional filtering (e.g., multiple-choice). (required if additional criteria exist)
Possible values:
DROPDOWN: Single choice option.
MULTIPLE_CHOICE: Multiple choice option.
answerOptions:
Type: Array[String]
Description: List of answer options for the additional criteria question. (required if additional criteria exist)
expectedAnswer:
Type: Array[String]
Description: The expected answer(s) for filtering respondents. For DROPDOWN
, you need to only sent 1 element of expected answer. (required if additional criteria exist)
lengthOfSurvey
Type: Integer
Description: In minutes, if not sent we will set 30 minutes by default
blacklistEmails
Type: Array of strings
Description: List of blacklisted email
whitelistEmails
Type: Array of strings
Description: List of whitelisted email
If the request encounters an issue, the response will include an error code and message.
Error Example:
Bad Request 400
Common Error Codes:
400: Bad request โ usually due to invalid parameters.
401: Unauthorized โ token missing or invalid.
404: Not found โ respondent not found.
500: Internal server error โ an issue on the server side.
Quota for SIR Respondent
In minutes, if not sent we will set 30 minutes by default