replace_routing_code
Replace a routing code completely by submitting all required fields. Get a confirmation summary first, then confirm with the token to apply the update.
Instructions
Fully replace a routing code (PUT /code-routage/id-instance:{id-instance}). Unlike update_routing_code, all fields are required and replace the existing object entirely.
HUMAN-IN-THE-LOOP: Requires user confirmation. Call without confirmation_token first, show the summary to the user, then call again with the token.
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": {
"id_instance": "<id_instance>",
"type_identifiant_routage": "<type_identifiant_routage>",
"libelle_code_routage": "<libelle_code_routage>",
"etat_administratif": "<etat_administratif>"
},
"name": "replace_routing_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_instance | Yes | Directory instance ID (idInstance) of the routing code. | |
| confirmation_token | No | Confirmation token from a previous call. Omit on the first call. | |
| etat_administratif | Yes | 'A' (active) or 'F' (closed). | |
| libelle_code_routage | Yes | Label for the routing code. | |
| type_identifiant_routage | Yes | 4-digit type code (typeIdentifiantRoutage). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||