Update a Route on a Domain Listener
update_domain_routeReplace a single route entry on a port listener. Identify the existing route via prefix or regex (whichever it uses); the replacement route needs workloadLink and may omit optional matchers to match /. Returns the full updated domain JSON for inspection. Recommended reading before first use: get_cpln_skill("domain") — the runbook for this tool family (read once per session).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Organization slug (lowercase kebab-case). NEVER guess — if the user has not named one, ask. On org-not-found, stop and ask; do not retry variants. | |
| route | Yes | Route entry forwarding listener traffic to a workload. Minimal valid route: { "workloadLink": "//gvc/{gvc}/workload/{name}" }. All matchers are optional; omit prefix/regex to match /. | |
| domain | Yes | Fully qualified domain name. | |
| portNumber | Yes | Existing listener port number to target. | |
| routeIdentifier | Yes | Identifier for an existing route. Route identity is path matcher + host matcher (Joi uniqueRoute) — include the route's hostPrefix/hostRegex when it has one, or a same-path route on a different host is matched instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the call succeeded. | |
| data | No | The full machine-readable result — list rows, the resource object, query results. Read THIS, not just the summary. | |
| summary | Yes | One-line summary of the result. | |
| nextSteps | No | Recommended follow-up actions for this task, in order. |