---
title: "Import routes"
method: POST
path: "/v2/organisations/routes/import"
tags: ["Gateway GRPC"]
---

# Import routes

`POST /v2/organisations/routes/import`

## Request

- Base URL: `https://api.cautio.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cautio.in/v2/organisations/routes/import`
- Auth: HTTP bearer

## Request body

- ImportRouteRequestDto[]
  - `index` number, required: Client-supplied route index
  - `route_name` string, required: Name of the route
  - `organisation_id` string, uuid, required: Organisation ID
  - `locations` CreateRouteLocationDto[], required
    - `latitude` number, required
    - `longitude` number, required
    - `type` 0 | 1 | 2, required
    - `address` string

## Response `200`

Per-route import results

- ImportRoutesResponseDto
  - `results` ImportRouteResultDto[], required
    - `index` number, required: Client-supplied route index
    - `success` boolean, required: Whether this route was created
    - `route_id` string, uuid
    - `message` string

---

[API](https://skmtc.dev/cautio/apis/cautio-api.md) - [All operations](https://skmtc.dev/cautio/apis/cautio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cautio/apis/cautio-api/revisions/214e6d1d2b6c?raw)
