Create or update a route

Creates a route with the specified ID, or updates it if it already exists.