---
title: "Update routes to requested automatic routing process"
method: PATCH
path: "/benefits/automatic-routing-process"
tags: ["Benefits"]
---

# Update routes to requested automatic routing process

`PATCH /benefits/automatic-routing-process`

This route accepts two types of input, which can be a route, or one of the divergence types. At least one of the two properties (routes or divergenceType) must exist. If both exist, only the divergenceType property will be considered.

## Request body

- object
  - `routingId` string, required
  - `routes` object[]
    - `orderRoute` number, required
    - `routeWay` number, required
    - `distance` number, required
    - `boardingPlace` string, required
    - `destinationPlace` string, required
    - `routeValue` number, required
    - `transportationLine` string, required
    - `duration` string, required — Time duration based on hh:mm:ss format. e.g., 10:10:10
    - `transportType` 'BUS' | 'SUBWAY' | 'TRAIN' | 'BRT' | 'LIGHT_RAIL' | 'MONORAIL' | 'TRAM' | 'VAN' | 'AQUABUS' | 'TROLLEYBUS' | 'TUK_TUK' | 'FERRY' | 'BOAT' | 'CABLE_CAR' | 'CHARTER' | 'ON_FOOT' | 'RIVER_TRANSPORT', required
    - `transportDesc` string
    - `cardId` string
    - `cardDescription` string
  - `divergenceType` 'OUT_OF_SCOPE' | 'NO_ROUTE_FOUND'
  - `metadata` object

## Response `200`

Successful operation

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/gupy/apis/gupy-public-api.md) · [All operations](https://skmtc.net/gupy/apis/gupy-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupy/gupy-public-api/revisions/3f26defa2a42/schema)
