Skip to main content

Archive or restore a workspace

POST 

/api/workspaces/:id/archive

Sets the workspace's archived flag (true to archive, false to restore) and returns the updated workspace. The flag is only for clients to display: members, documents, and edit access stay the same, and the workspace does not become read-only. The response does not include role or counts. Only workspace admins may do this; everyone else, including non-members, gets 403. A private workspace cannot be archived (400).

Request​

Responses​

Updated workspace.