Create a new Project or update an existing Project’s settings
Programmatically create new Projects or update existing ones. Projects are the top-level container in DNCScrub for organizing campaigns, scrub options, and Internal DNC lists. If the suppliedDocumentation Index
Fetch the complete documentation index at: https://docs.dncscrub.com/llms.txt
Use this file to discover all available pages before exploring further.
project_code already exists, the endpoint updates the
existing Project. If it does not exist, a new Project is created with a
default Campaign.
<acctId>_ is added
automatically when missing.Pass projId=<acctId> instead of project_code to operate on the Master
Project.insert_project - new project (auto-selected when project_code does not exist)update_project - update existing project (auto-selected when it exists)deactivate_project - mark project inactivereactivate_project - reactivate an inactive projectxml to return a full XML document describing the resulting Project,
its Campaigns, and (for SmartBlock-enabled accounts) SmartBlock settings.| Status Code | Meaning |
|---|---|
200 | Project updated successfully (no body unless output=xml) |
201 | Project created successfully (no body unless output=xml) |
400 | Validation or save error - reason phrase contains the error message |
403 | Project exists but is inactive (use handler=reactivate_project) |
output=xml is supplied, the response body is an XML document rooted at
<DncCompliance><DncScrub><Accounts><Account><Projects>...</Projects></Account></Accounts></DncScrub></DncCompliance>
containing the Project, its Campaigns, and any FTC Org Id metadata that was
just resolved.
project_code matches an inactive Project, the endpoint returns 403 Inactive Project unless you explicitly request reactivation:
projId=<acctId> (with no project_code) to update settings on your
account’s Master Project:
output=xml and no fields
to update. Because no fields change, the call is read-only:
projId rather than your
account ID.
To get details for a single Project, pass that Project’s projId:
Idempotent Upserts
201 vs 200) to tell the
cases apart.Use output=xml on Create
output=xml to a create request returns the new Project’s full
record (including the auto-created default Campaign) so you don’t need a
follow-up call to get its IDs.FTC Org Id Validation
nat_dnc_org_id on a new Project triggers FTC validation. Make
sure the Org Id (or SAN) is correct, or the create will fail with an FTC
error message.Project Code Rules
_ character in your
raw code if your account uses auto-prefixing - the prefix delimiter is
_.