Replace the spam block list
POST/api/accounts/:accountId/spam_blocklist
Replaces the account mailbox's spam block list on the platform with blocklist, an array of addresses or domains. The whole list is replaced, so send every entry, not just new ones; an empty array clears it.
The response echoes the list that was sent rather than reading it back. The request uses the session's platform access token (401 without one), and platform failures return 424.
Request
Responses
- 200
- 400
- 401
- 404
- 424
Block list.
Request failed.
The session has no mailbox access token (code is mail_token_missing) or no platform access token.
The account does not exist or belongs to another user.
The IMAP, SMTP or Sieve server, or the platform, refused the request or could not be reached.