The command ensures that the route with the provided ID is created or modified. The full route must be provided to ensure (either update or create) the route. Non-present data will only be filled with defaults or left empty, but previous values will not be taken into consideration.
To ensure the route, you need to use the following PUT
request:
PUT /gateways/{apigatewayId}/routes/{routeId}
200 Route successfully updated
201 Route successfully ensured