---
title: "Update a routing group"
method: PUT
path: "/api/routing-groups/{id}"
tags: ["RoutingGroups"]
---

# Update a routing group

`PUT /api/routing-groups/{id}`

## Request

- Base URL: `https://core-api.getaptly.com`
- URL: `https://core-api.getaptly.com/api/routing-groups/{id}`
- Auth: one of:
  - API key in header `x-token`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/getaptly/apis/aptly-api/docs/api/routing-groups/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates an existing routing group. All fields are optional — only provided fields are changed.
Pass `null` for a field to clear it.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `type` 'simultaneous' | 'sequential'
  - `destination` object: Ring target configuration.
  - `ringDurationSeconds` number
  - `callerExperience` object
  - `maxWaitSeconds` number
  - `overflow` object

## Response `200`

Routing group updated.

- object
  - `ok` boolean

## Other responses

- `400`: Invalid field value (e.g. unrecognized `type`).
- `401`: Invalid or missing credential.
- `404`: Routing group not found.

---

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