Sweeppea API v3

Delete Participant

Remove participant from sweepstakes.

DELETE https://api-v3.sweeppea.com/participants/delete

Description

This endpoint allows you to delete a participant from a sweepstakes. The participant is identified by ParticipantToken and will be removed from whichever collection it exists in (Participants, ParticipantsAmoe, or OptOuts).

Request Body Parameters

Parameter Type Required Description
SweepstakesToken String (UUID v4) Yes Unique identifier for the sweepstakes
ParticipantToken String (UUID v4) Yes Unique identifier for the participant

Request Body

Field Type Required Description
SweepstakesToken String (UUID v4) Yes Unique identifier for the sweepstakes
ParticipantToken String (UUID v4) Yes Unique identifier for the participant

Code Examples

curl -X DELETE "https://api-v3.sweeppea.com/participants/delete" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "SweepstakesToken": "uuid-v4-string",
    "ParticipantToken": "uuid-v4-string"
  }'

Response

{
  "Response": true,
  "Message": "Participant Deleted Successfully",
  "Data": {
    "ParticipantToken": "uuid-v4-string",
    "SweepstakesToken": "uuid-v4-string",
    "DeletedFrom": ["Participants"],
    "DeletedCount": 1
  }
}

Error Responses

{
  "Response": false,
  "Message": "Invalid or Missing SweepstakesToken",
  "Help": {
    "ExpectedBody": {
      "SweepstakesToken": "string (required) — UUID v4 of the sweepstakes",
      "ParticipantToken": "string (required) — UUID v4 of the participant"
    }
  },
  "Code": 400
}
{
  "Response": false,
  "Message": "Participant Not Found in This Sweepstakes",
  "Code": 404
}
© Sweeppea. All rights reserved.