{ domain, name?, reason? }) or many at once ({ entries: [...] }). Domains are normalized (lowercase, protocol and www. stripped). Duplicate domain entries with a name are upserted; duplicate domain entries without a name are skipped to preserve existing names. Name-only duplicates are silently ignored.
/api/blocked-companies with other verbs. See the sibling page for related operations on the same resource.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Either a single { domain, name?, reason? } or a bulk { entries: [...] } shape. The server detects which based on presence of entries.
Domain to block. Normalized server-side (lowercased, protocol and www. stripped). Either domain or name is required.
Company display name. Used when blocking by name rather than domain. Either domain or name is required.
Free-form note explaining why the caller is blocking this.
Row(s) inserted or upserted. blocked is an object on the single path and an array on the bulk path.
On the single path, blocked is the inserted row. On the bulk path, blocked is an array (may be empty if all were duplicates).