Update link · 更新链接(短.在线)
update_link修改自有短链的标题或目标地址。需要 links:update。未验证邮箱或注册未满 7 天只能改标题。不会重新启用短链。PREMIUM_ALIAS_FROZEN。 Change the title or destination of a link you own. Requires links:update. Unverified email or an account under 7 days old can change the title only. Does not re-enable a link. PREMIUM_ALIAS_FROZEN.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "example",
"title": "Notes"
},
"name": "update_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Short code or link id you own. | |
| title | No | Title, at most 256 characters. Stored on the short link. | |
| destination | No | New http(s) destination. Refused when the email is unverified, the account is under 7 days old, the link is disabled, quarantined, or reported, or the 24 hour cap is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ok | Yes | ||
| code | No | ||
| tool | No | ||
| type | No | ||
| error | No | ||
| state | No | ||
| title | No | ||
| aliases | No | ||
| feature | No | ||
| message | No | ||
| accepted | No | ||
| retryable | No | ||
| short_url | No | ||
| created_at | No | ||
| expired_at | No | ||
| request_id | Yes | ||
| status_url | No | ||
| destination | No | ||
| resend_path | No | ||
| short_url_ascii | No |