Change, archive or restore an event
update_eventChanges one of a site's declared events: its label; the addresses of a page reached, or the destinations of a link to a site (they replace the old ones); or archives it and restores it. An automatic event (auto:…) archived is no longer recorded at all. A page reached is counted from the pageviews, so new addresses count it again, past visits included: its numbers, and its conversions when it is a goal, change for the past too. Say so. An archived event leaves the lists and the goals; nothing is erased, and it can be restored. The technical name of a click or of a code event cannot change: it is what the site sends. Nothing is ever deleted through these tools. Use this rather than creating a second event for the same thing.
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": {
"site": "<site>",
"event": "<event>"
},
"name": "update_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | For a page reached only: all its addresses, separated by commas (e.g. /pricing, /fr/pricing). They replace the ones it had. | |
| site | Yes | The site: its domain (example.com), its id, or its public id. See list_sites. | |
| event | Yes | The event's name or label, as list_events gives it. | |
| label | No | Its new label, as the user says it. | |
| targets | No | For a link to a site only: all its destinations, separated by commas (e.g. axyomes.com). They replace the ones it had, past clicks included. | |
| archived | No | True to archive it, false to restore it. |