Edit an existing route in the Router
The Router API database is populated from the Publishing API, and also the deprecated router-data tool. Changes to routes should be made in the Publishing API as this is the authoritive source of the data, however, it can be helpful to make short term changes to routes manually, when going through the Publishing API would take to long, for example during an incident.
If there’s a need to edit a Route in the database, follow these instructions:
$ ssh router-backend-1.router.production $ govuk_app_console router-api > r = Route.where(incoming_path: '/path-to-item').first
r object directly (see the
available options), eg:
> r.route_type = 'exact' > r.save!
Once you’ve edited the Route appropriately and saved it, you need to reload the router: