Set link expiry
set_link_expiryUse when the user wants the link to stop working after a date, or to keep it up indefinitely. Sets or clears an expiry on a site's share link. Pass expires_at as an ISO 8601 timestamp (e.g. "2026-12-31T23:59:00Z") to make the link stop working after that moment (a landing page's /lp address and campaign links stop with it), or null to remove any expiry so the link works indefinitely. Setting an expiry is Pro only and works on a public page as it is; clearing one works on every plan. Needs edit access to the site (its creator or an editor grant, in a role that can edit); rejected requests (forbidden, plan_limit, validation_failed, not_found) leave the stored expiry unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The id of the site to update | |
| expires_at | Yes | ISO 8601 timestamp to expire the link at, or null to clear any expiry | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). |