Clear the audience

SDK platic.campaigns.audience.clear()

Clear the campaign audience by removing its internal tag from all associated contacts. The contacts remain in the workspace.

Example

await platic.campaigns.audience.clear("campaign_123");

Path parameters

ParameterTypeDescriptionRequired
campaignIdstringUnique identifier of the campaignrequired

Response 200 OK

{
  "status": "success",
  "message": "All clients removed from campaign successfully",
  "data": {
    "success": true,
    "message": "All clients removed from campaign audience successfully",
    "removedCount": 245
  }
}

Notes

  • If the audience is already empty, the operation answers 200 with removedCount: 0.