Skip to main content

Remove from Whitelist

Important Note

This feature is available in the Business plan. If you haven't upgraded yet, please upgrade before using this feature.

API Overview

  • Function: Set Allowed Survey Respondents (Remove Third-Party User IDs from Whitelist)
  • Request Method: POST
  • Request URL: /api/surveys/{survey_id}/respondent/access_list/batch_delete?appid={appid}&access_token={access_token}

Request Parameters

Parameter NameTypeLocationDescriptionExample
survey_idintegeruriSurvey ID9560808
typeintegerbodyWhitelist TypeFixed value 11 for third-party login users
respondent_idsarray[integer]bodyRespondent ID List, maximum 100 users per request. Note: Use the respondent_id field from user information[60000207891,60000207892,60000207893]

Request Example

POST https://open.wesurvey.com/api/surveys/9560808/respondent/access_list/batch_delete

{
"type":11,
"respondent_ids":[60000207891]
}

Response Example

{
"code": "OK",
"error": {
"type": ""
},
"data": {},
"request_id": "a51f36ef-1fd5-4537-9e9b-6e5054b99e15"
}

Error Codes

error.type CodeDescription
permission_deniedNo Permission
invalid_list_lengthInvalid List Length