---
title: "Update WaitTime, Restrictions and OnewayDirection data for a number of route element(s)"
method: PUT
path: "/{apiKey}/api/routing/routeelements"
tags: ["Routing"]
---

# Update WaitTime, Restrictions and OnewayDirection data for a number of route element(s)

`PUT /{apiKey}/api/routing/routeelements`

## Oauth2 Roles ##  
 - Requires user to have one of the following roles: admin, editor, owner, service

## Path parameters

- `apiKey` string, required

## Request body

- RouteElementCompositeValue[]
  - `id` string, nullable
  - `datasetId` string, nullable
  - `externalId` string, nullable — UUID of this element as an extern ID
  - `geometry` Geometry
    - `type` 0 | 1 | 2 | 3 | 4 | 5 | 6
  - `restrictions` string[], nullable — (Optional) IF set - one or more of these tokens will be needed to traverse this area
  - `onewayDirection` number, double, nullable — (Optional) IF set - end users may only walk in the direction stated within the area (+/- 90 degrees)
  - `waitTime` integer, nullable — (Optional) IF set (to a positive number) end users will be asked to wait this additional amount of seconds here.

## Response `200`

OK

## Other responses

- `400` — BadRequest (Malformed solutionId)
- `401` — Unauthorized. User needs to login first.
- `404` — NotFound

---

[API](https://skmtc.net/mapsindoors/apis/integration-api.md) · [All operations](https://skmtc.net/mapsindoors/apis/integration-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mapsindoors/integration-api/revisions/7f2454dc70d5/schema)
