Set a field for many leads
Sets one field to one value, or clears it, for a selection of leads. level picks which field: campaign is the column in each lead's campaign, which that campaign's messages read; person is the field on the person behind each lead, shared across their campaigns, and corrections follow into campaign copies that held the old value; company is the field on each lead's company, the same way. Fields are matched by name, ignoring case. Scoring and research columns cannot be edited. Fields that reach or identify the person or company (social profile, email, phone, names, website) can be, and the result carries warnings: always that a wrong value breaks outreach, and also when the value does not look like the field's format. A person's social profile or a company's page or website must be unique, so one value cannot be set on several people or companies. Pass dryRun to get how many records would change, the current values, and anything skipped, without changing anything.
/campaigns.leads.bulkSetFieldAuthorization
bearerAuth Enter your MailMoo API key (format: sk_live_...)
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/campaigns.leads.bulkSetField" \ -H "Content-Type: application/json" \ -d '{ "scope": { "kind": "campaign", "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf" }, "selection": { "mode": "ids", "leadIds": [ "0e7eb83f-f60a-4ca7-95b5-29e3c79907f5" ] }, "level": "campaign", "field": "string", "value": "string" }'{ "dryRun": true, "level": "campaign", "field": "string", "value": "string", "toChange": 0, "unchanged": 0, "skipped": 0, "campaignsMissingField": [ "string" ], "currentValues": [ { "value": "string", "count": 0 } ], "warnings": [ "string" ]}Remove leads from a campaign POST
Removes a selection of leads from one campaign: their sequence there stops and their rows and column values in that campaign are deleted. The people stay in the workspace with their other campaigns and conversations. The scope must name the campaign. Pass dryRun to get the count without removing anything.
List active campaign IDs GET
Returns the ID of every campaign in the workspace whose sequence is currently running. Use it to narrow a metrics request down to the campaigns that are actually sending.

