Replace a document's content
everypage_replace_contentReplace the PDF behind an existing EveryPage link while preserving the share link, QR code, settings, and readership history. Revive links that have reached their view limit.
Instructions
Swap the PDF behind an existing EveryPage link, keeping the same share link, QR code, settings and readership history - only the bytes change. Anyone who already has the link sees the new version. This is also the way to revive a link that was burned by its view limit. The previous version is not recoverable. Requires the Pro plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | https:// link to the replacement PDF. | |
| file | Yes | The document to update: UUID, short link id, or a pasted share URL. | |
| path | No | Absolute path to the replacement PDF on this machine. | |
| keepAnchors | No | Keep page-anchored hotspots and reader notes despite the page numbers changing. Default false (they are cleared). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | The document's canonical UUID. | |
| qr_url | Yes | PNG QR code for the share link. Public - no credentials needed to fetch it. | |
| shortId | No | The document's short share-URL alias. | |
| fileName | No | The document's display name. | |
| shareUrl | Yes | The tracked share link to send to a reader. | |
| embed_code | Yes | Ready-to-paste <iframe> that embeds the document. | |
| contentVersion | No | Increments on every replacement; 1 was the original upload. |