Link entries to an article
link_article_entriesSet the entries an article is about and those it mentions (their pages list it under “In the news” once it is live), as a save does. By default the entries given are added (one already linked takes the role given) and those in remove taken off; with replace: true the two lists given are the whole of it. Audited with the key and the tool. Dry run by default: it shows the links before and after.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| about | No | Entries the article is about (VHID, short name or QID). | |
| remove | No | Entries to take off it. | |
| article | Yes | The article: its id (list_articles), its address ("/news/<slug>", "/guides/<slug>" or the full URL), or its slug alone. | |
| dry_run | No | true (the default): write nothing — show the change and the exact request it would send. false: make the change. | |
| replace | No | true: `about` and `mentions` are the whole list, and every other entry is taken off. | |
| summary | No | Why, in a few plain words, kept with the revision in the article’s history. Never an internal tracking ID. | |
| mentions | No | Entries it names in passing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | A dry run: what to do next to make the change, in words. | |
| result | No | A real run: the route’s own answer, where the tool adds facts of its own beside it. | |
| confirm | No | A dry run of a change that needs it: the exact target to send back as `confirm` with dry_run: false. | |
| dry_run | No | true: a dry run, which wrote nothing. Absent from a real run. | |
| replayed | No | A real run with an idempotency_key already used for this change: the first call’s answer, given back; nothing was written now. | |
| would_send | No | A dry run: the exact request the real run would send (`method`, `path`, any `headers` such as an Idempotency-Key, and its `body`, `form` or `query`), or the requests, in order. | |
| may_edit_live | No | A dry run of a live edit: whether this key’s account may edit this entry live. | |
| refused_because | No | A dry run the real run would be refused for: why, in words. |