---
title: "Set Strategy Route Restrictions"
method: PUT
path: "/v1/optimization-strategies/{id}/route-restrictions"
tags: ["Route Restrictions"]
---

# Set Strategy Route Restrictions

`PUT /v1/optimization-strategies/{id}/route-restrictions`

## Request

- Base URL: `https://api.sandbox.usenash.com`
- URL: `https://api.sandbox.usenash.com/v1/optimization-strategies/{id}/route-restrictions`
- Auth: none declared

Bulk-replace the route restrictions attached to ``<id>``. Empty list detaches all restrictions.

## Path parameters

- `id` string, required: The OptimizationStrategy id (``ost_…``).

## Request body

- SetStrategyRestrictionsRequest
  - `route_restriction_ids` string[], required

## Response `200`

OK

- SetStrategyRestrictionsResponse
  - `route_restrictions` RouteRestrictionRead[], required
    - `id` string, required
    - `organization_id` string, required
    - `name` string, required
    - `description` string, nullable
    - `coverage_area_id` string, required
    - `polygons` array[], required
      - array[]
        - unknown[]
          - unknown
    - `restriction_metadata` object, nullable
    - `optimization_strategy_ids` string[]

## Other responses

- `422`: Unprocessable Content

---

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