Set a share link
websiteShareLinks_setPoints a path on the website, such as /menu.pdf, at a ready image or file in its asset library. A file has one link: a new path moves it, and setting a linked path to another file moves that path (how a replaced file keeps its link). Paths used by pages, config redirects, or the site server are refused; at most 100 per website. Applies at once on every site host, without publishing, as a 302 to the file’s current delivery URL.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"websiteId": "<websiteId>",
"path": "<path>",
"assetId": "<assetId>"
},
"name": "websiteShareLinks_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path on the website that opens the file, such as `/menu.pdf`. Lowercase and starts with `/`. | |
| assetId | Yes | Id of a ready image or file in this website’s asset library. | |
| websiteId | Yes |