Blacklist leads in bulk
Puts up to 100 leads on the workspace blacklist. Nothing further is sent to a blacklisted lead, and the lead is skipped when added to a lead list or campaign. The same thing the Blacklist button in the app does.
Each entry names one lead by lead_uuid, linkedin_profile_url or email
(at least one). Entries are resolved in that order, one lead per entry. URLs are
normalised (linkedin.com/in/jane matches the stored
https://www.linkedin.com/in/jane) and emails are compared case-insensitively.
The whole request is checked first: a missing, empty or non-array leads, more
than 100 entries, a malformed URL or email, an entry with no identifier, or the
same identifier twice in one batch is refused with 422 and nothing is queued.
On success the response is 202 Accepted with the number of entries that passed
and the writes happen shortly after in the background: blacklisted_at is set and
the lead’s campaign enrolments that have not started yet are closed as
blacklisted. A LinkedIn URL the workspace has never seen is created as a
blacklisted lead, so the person is blocked before they are ever imported. Entries
that match nothing (by uuid or email) or are already blacklisted are skipped and
not reported. Use GET /leads/blacklist to see the result.
Works with a workspace API key or an agency API key for a linked workspace.

