Archive a document. Archiving is reversible with unarchive; nothing is deleted. An archived document is no longer rendered and its key is released, so a new document can be created with the same key. Returns the archived document.
Documents are shared by your sandbox and production environments, so changing one with an API key requires a production API key. A sandbox API key can read documents but gets 403 here.
Documents are opt-in per organization: unless the org_documents feature flag is enabled for your organization this endpoint returns 404.
403The request used a sandbox API key, or the caller is missing the communications:edit permission.
404No such document, or documents are not enabled for the organization.
409The document is already archived.