Stop an email channel's history sync for good
DELETE/api/inbox/channels/:channel/history-sync
STOP: a queued, running, paused or failed run becomes cancelled and its cursor and page offset are CLEARED, so it cannot be resumed (use pause for that). The counters stay, for the final numbers. The worker sees the stop at the next page boundary. A run that already ended (idle, completed, cancelled) is returned unchanged. Authorisation: see MailHistorySync.can_manage.
Request
Responses
- 200
- 401
- 403
- 404
- 422
The record after stopping.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
Resource not found (or not visible to the current tenant).
Not an email channel.