API documentation

Deleting pending survey requests

Remove all pending (i.e. scheduled in the future, but not yet sent) survey requests for a given person.

Endpoint

DELETE /v1/people/{PERSON_EMAIL}/survey_requests/pending.json

Example request

curl https://api.delighted.com/v1/people/jony@appleseed.com/survey_requests/pending.json \
  -u YOUR_DELIGHTED_API_KEY: \
  -X DELETE
Delighted::SurveyRequest.delete_pending(person_email: 'jony@appleseed.com')
delighted.surveyRequest.deletePending({ person_email: 'jony@appleseed.com' });
delighted.SurveyRequest.delete_pending(person_email='jony@appleseed.com')
\Delighted\SurveyRequest::deletePending(array('person_email' =>
                                               'jony@appleseed.com'));

Example response

{
  "ok": true
}

Parameters

Name Type Description
person_email String Email of the person you want to delete scheduled surveys for. (required)