set_expiry
Update a shared page's lifetime by setting expiry in hours, or null for permanent if the plan permits. Responses return the exact expiration, accounting for plan ceiling and clamping.
Instructions
Set hours-from-now expiry, or null for never. A NUMBER above the plan ceiling is shortened to it (free: 168 hours) and the response says so. null on a plan that caps page lifetime is REFUSED — 409 expiry_clamped, nothing changed — rather than quietly becoming 7 days, so a shortened page can never be reported as permanent: either resend with accept_clamp: true to take the ceiling, or tell the user the plan cannot make this link permanent. Quote expires_at_iso from the response, never the value you asked for.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_slug | Yes | ||
| accept_clamp | No | ||
| expires_in_hours | Yes |