mailboxIds or every mailbox on given domains with domainIds; sending both or neither is a 422.mailbox.updated webhook is emitted.mailboxIds, every ID must belong to the workspace (404 listing the missing IDs otherwise), and the admin mailbox of a domain can only be scheduled together with all other mailboxes of that domain (400 otherwise).remove to false clears the schedule.remove set to true the mailboxes are deleted at renewal. Send remove: false before then to keep them.curl --location --request PUT 'https://api.zapmail.ai/api/v3/mailboxes/scheduled-removal' \
--header 'x-auth-zapmail;' \
--header 'x-workspace-key;' \
--header 'Content-Type: application/json' \
--data '{
"mailboxIds": [
"0b6f7a52-3a0e-4a73-9d34-6f0d1a2c9e11",
"7d1c9e30-52ab-4c1f-8a76-0f9e8d7c6b5a"
],
"remove": true
}'{
"status": 200,
"message": "Selected mailboxes will be removed on next renewal",
"data": null
}