Change a document's share settings
everypage_update_file_settingsModify sharing options for an existing document: passcode, expiry, downloads, viewer mode, email gate, view limit, page range, or slug. Unchanged settings stay as-is.
Instructions
Change how an existing EveryPage document is shared: passcode, expiry, downloads, viewer mode, email gate, view limit, page range or vanity slug. Settings that are not mentioned keep their current value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The document: UUID, short link id, or a pasted share URL. | |
| slug | No | Vanity link name on the owner's custom domain: lowercase letters, digits and hyphens. Requires the Pro plan. | |
| pageTo | No | Last page readers may see. Set pageFrom and pageTo to 0 to clear the limit (clearing is never plan-gated). | |
| pageFrom | No | First page readers may see (1-based). Pair with pageTo. Pages outside the window are never sent to the browser. Requires the Pro plan. | |
| passcode | No | Require this passcode to open the document. Requires the Basic plan or higher. | |
| viewLimit | No | Burn the link after this many views. 0 clears the limit. Requires the Basic plan or higher. | |
| watermark | No | Stamp the reader's identity across the pages. Requires the Pro plan. | |
| askReceipt | No | Ask readers to confirm they received the document. Requires the Basic plan or higher. | |
| viewerMode | No | How the document is presented: standard scroll, page-turning flipbook, swipe, or magazine spread. | |
| expiryHours | No | Expire the link this many hours from now. Capped by plan: 7 days on free, 365 days on basic, unlimited on pro. | |
| gateDomains | No | Restrict the email gate to these domains, e.g. ["acme.com"]. An empty array clears the restriction. Requires the Pro plan. | |
| neverExpire | No | Keep the link alive permanently. Overrides expiryHours. Requires the Pro plan. | |
| notifyOnView | No | Email the owner when someone reads the document. Requires the Basic plan or higher. | |
| requireEmail | No | Make readers give an email address before they can read. Requires the Pro plan. | |
| allowDownload | No | Let readers download the original PDF. | |
| clearPasscode | No | Remove the passcode so anyone with the link can read. Wins over passcode if both are given. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The document record after the change. | |
| 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. | |
| appliedSettings | Yes | What changed. |