Extend qURL Expiration
extend_qurlKeep a qURL link open longer by pushing out the link's expiration by a relative duration. Pass a link's q_ display ID as resource_id, or a resource ID plus qurl_id; a resource with exactly one active link needs no qurl_id (unless…
Instructions
Keep a qURL link open longer by pushing out the link's expiration by a relative duration. Pass a link's q_ display ID as resource_id, or a resource ID plus qurl_id; a resource with exactly one active link needs no qurl_id (unless it has more than the 100 links a read lists). Use this when the only change you need is more time on the clock. Use update_qurl_token instead to set an absolute expires_at or change the link's label, policy, or sessions. Use revoke_qurl_token or delete_qurl when you want to cut off access. Links minted by the upload tools belong to the file connector and cannot be extended from this server. Not idempotent: calling twice with the same extend_by extends the link twice; use update_qurl_token with expires_at when retries must not double-push. Requires qurl:write and qurl:read: it reads the resource before updating, to check the link and to return it, so each extend costs two API calls (three when the read does not list the link). A link cannot outlive its resource: if the resource's own expires_at is sooner, raise it with update_qurl first; the result then carries extend_warning. Link-selection problems return an error result; a rejected update throws with its HTTP status and error code. Returns the resource (same shape as get_qurl); the extended link's new expiry is in extended_link_expires_at (and qurls[].expires_at), not the resource's own expires_at.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qurl_id | No | The link (q_ display ID) to extend. Required when the resource has more than one active link. | |
| extend_by | Yes | Duration to extend the link by (e.g., "24h", "7d"; 1m to 30d per call) | |
| resource_id | Yes | Resource ID, or a link's q_ display ID; a q_ ID selects that link, and this server reads the resource to find its parent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crid | No | ||
| slug | No | Immutable per-owner resource identity, when one was supplied at create time | |
| tags | No | ||
| qurls | No | ||
| status | Yes | unknown | |
| private | No | ||
| qurl_site | No | ||
| created_at | Yes | ||
| expires_at | Yes | ||
| qurl_count | No | Number of access tokens minted for this resource | |
| target_url | No | Underlying URL the qURL protects; omitted on connector-owned resources | |
| description | No | ||
| resource_id | Yes | Stable resource identifier (public key or legacy r_ ID) | |
| custom_domain | No | ||
| preserve_host | No | When true, the original Host header is preserved when proxying via the custom domain. Only meaningful when custom_domain is set; defaults to false on the API side. | |
| extend_warning | No | Present when the resource's expiry cuts the extended link short; tell the user | |
| consumer_access | No | ||
| extended_qurl_id | No | The link that was extended | |
| extended_link_expires_at | No | The extended link's new expiry; report this, not the resource's own expires_at |