Update qURL Token
update_qurl_tokenUpdate token-level settings—expiration, label, access policy, max sessions, or session duration—for a single qURL token without changing sibling tokens or resource metadata.
Instructions
Update one qURL token under a resource: expiration, label, access policy, max sessions, or session duration. Use this when you need to change a specific q_… token without changing sibling tokens or resource-level metadata. Use update_qurl instead for resource-level description/tags/custom-domain changes, and use revoke_qurl_token when the token should stop working entirely. Constraints: extend_by and expires_at are mutually exclusive; at least one token update field must be set. Returns the updated token summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Human-readable label for this token | |
| qurl_id | Yes | The qURL display ID (q_ prefix) to update. | |
| extend_by | No | Duration to extend this token by (e.g., "24h", "7d"). Mutually exclusive with expires_at. | |
| expires_at | No | Absolute token expiration timestamp (RFC 3339). Mutually exclusive with extend_by. | |
| resource_id | Yes | The resource public key, CRID, or legacy r_ ID to update a specific qURL token under. | |
| max_sessions | No | Maximum concurrent sessions for this token (0 = unlimited, max 1000) | |
| access_policy | No | Replace the access policy for this token | |
| session_duration | No | How long access lasts after clicking (e.g., "1h"). Empty string applies the parent resource cap when one is set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| status | Yes | Per-token status (wider than resource status — tokens may be consumed/expired independently) | unknown |
| qurl_id | Yes | ||
| qurl_site | No | ||
| use_count | No | ||
| created_at | No | ||
| expires_at | No | ||
| max_sessions | No | ||
| one_time_use | No | ||
| access_policy | No | Access control policy snapshot for this token | |
| session_duration | No | Seconds of access granted after a successful resolve |