Slack error edit_window_closed: The edit window has closed
Last verified against Slack API reference - chat.postMessage errors
The message cannot be edited due to the team message edit settingsWhat error edit_window_closed means
The workspace limits how long after posting a message may be edited, and that window has passed. chat.update documents the description as "The message cannot be edited due to the team message edit settings". Slack admins can configure editing to be allowed always, never, or only within a time window; once outside the window, edits are refused for humans and apps alike.
Bots that maintain long-lived messages — status boards updated hourly, deploy dashboards, on-call rosters pinned in a channel — are the natural victims. The integration works perfectly in the development workspace (default settings allow editing indefinitely) and fails in the customer workspace whose admins set a 15-minute edit window. Nothing about your code changed; the policy environment did.
You cannot override the setting via API. Either the workspace admins relax the edit window, or the app changes strategy: post a fresh message and delete the old one (if deletion is permitted), or design the surface around append-style updates (thread replies noting changes) rather than in-place mutation.
What it looks like
{"ok": false, "error": "edit_window_closed"}Why it happens
- Workspace message-edit settings impose a time window, and the target message is older than it.
- The app's design assumes indefinite editability (status-board pattern) in a workspace that restricts it.
- Policy differences between development and customer workspaces masked the constraint until production.
How to fix Slack error edit_window_closed
- 1Confirm the workspace's message editing settings with an admin.
- 2If in-place updates are core to the feature, request the admin relax the edit window for the workspace.
- 3Otherwise switch strategy: delete-and-repost (where allowed) or append updates as thread replies.
- 4Detect the error and fall back automatically so the surface keeps updating instead of silently freezing.
How to stop it recurring
Treat message editability as a per-workspace capability, not a given: probe or ask during onboarding when your app depends on long-lived edits, and ship the repost fallback from day one. Document the requirement for customer admins installing the app.
Official reference: Slack API reference - chat.postMessage errors. See all Slack error codes or the Slack limits and quotas.
Related codes
- cant_update_message: Not allowed to update this messageAuthenticated user does not have permission to update this message.
- message_not_found: No message at that timestampNo message exists with the requested timestamp.
- cant_delete_message: Not allowed to delete this messageAuthenticated user does not have permission to delete this message.
- restricted_action: A workspace preference blocks this postingA workspace preference prevents the authenticated user from posting.
Error edit_window_closed - quick answers
What does Slack error edit_window_closed mean?
The workspace limits how long after posting a message may be edited, and that window has passed. chat.update documents the description as "The message cannot be edited due to the team message edit settings". Slack admins can configure editing to be allowed always, never, or only within a time window; once outside the window, edits are refused for humans and apps alike.
How do I fix Slack error edit_window_closed?
1. Confirm the workspace's message editing settings with an admin. 2. If in-place updates are core to the feature, request the admin relax the edit window for the workspace. 3. Otherwise switch strategy: delete-and-repost (where allowed) or append updates as thread replies. 4. Detect the error and fall back automatically so the surface keeps updating instead of silently freezing.
Stop debugging Slack by hand
Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.