---
title: "Update a routing"
method: PUT
path: "/api/public/v1/routing/{id}"
tags: ["RoutingResource"]
---

# Update a routing

`PUT /api/public/v1/routing/{id}`

## Request

- Base URL: `https://allquiet.app` (the document declares no server; this is the origin it was published from)
- URL: `https://allquiet.app/api/public/v1/routing/{id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/allquiet/apis/all-quiet-public-api/docs/api/public/v1/routing/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates an existing incident routing configuration by ID.

**Required API key permissions**

- **Scope:** `routings:update`
- **Accepted key types:** organization API key (org-wide), organization API key (team-scoped), personal access token (org-wide), personal access token (team-scoped)
- **Access:** Access is checked against the specific resource (team or organization reachability).
- **Required team role (user-linked keys only):** Administrator
- Organization API keys are not subject to organization or team role checks.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `provision` boolean

## Request body

- AllQuietApiPublicRoutingsRoutingResourceUpdateRequest
  - `displayName` string, required
  - `rules` AllQuietApiRoutingsModelsRoutingRule[], nullable
    - `id` string, uuid
    - `displayName` string, nullable
    - `conditions` AllQuietApiRoutingsModelsRoutingRuleConditions
      - `statuses` string[], nullable
      - `severities` string[], nullable
      - `integrations` string[], nullable
      - `services` string[], nullable
      - `intents` string[], nullable
      - `labels` string[], nullable
      - `labelsMatchType` string, nullable
      - `attributes` AllQuietApiRoutingsModelsRoutingRuleAttribute[], nullable
        - `name` string, nullable
        - `operator` string, nullable
        - `value` string, nullable
        - `ignoreCase` boolean
      - `attributesMatchType` string, nullable
      - `dateRestriction` AllQuietApiRoutingsModelsRoutingRuleDateRestriction
        - `from` string, date-time, nullable
        - `until` string, date-time, nullable
      - `schedule` AllQuietApiRoutingsModelsRoutingRuleSchedule
        - `after` string, time, nullable
        - `before` string, time, nullable
        - `daysOfWeek` string[], nullable
        - `from` string, time, nullable
        - `until` string, time, nullable
        - `selectedDays` string[], nullable
    - `actions` AllQuietApiRoutingsModelsRoutingRuleActions
      - `assignToTeams` string[], nullable
      - `assignToTeamsRepeatAlerts` boolean
      - `changeSeverity` string, nullable
      - `addInteraction` string, nullable
      - `forwardToOutboundIntegrations` string[], nullable
      - `affectsServices` string[], nullable
      - `excludeFromUptimeCalculation` boolean
      - `comment` string, nullable
      - `messageIsPublic` boolean
      - `snoozeForRelativeInMinutes` integer, nullable
      - `snoozeUntilAbsolute` string, time, nullable
      - `snoozeUntilWeekdayAbsolute` string, nullable
      - `ruleFlowControl` string, nullable
      - `discard` boolean
      - `deleteInRelativeInSeconds` integer, nullable
      - `setAttributes` AllQuietApiRoutingsModelsRoutingRuleSetAttribute[], nullable
        - `name` string, nullable
        - `value` string, nullable
        - `isImage` boolean
        - `hideInPreviews` boolean
      - `delayActionsInMinutes` integer, nullable
    - `channels` AllQuietApiRoutingsModelsRoutingRuleChannels
      - `outboundIntegrations` string[], nullable
      - `outboundIntegrationsMuted` boolean
      - `notificationChannels` string[], nullable
      - `notificationChannelsMuted` boolean
  - `teamConnectionSettings` AllQuietApiTeamsCommonTeamConnectionSettings
    - `teamConnectionMode` string, nullable
    - `teamIds` string[], nullable

## Response `200`

OK

- AllQuietApiPublicRoutingsRoutingResourceResponse
  - `id` string, uuid
  - `isProvisioned` boolean
  - `displayName` string, nullable
  - `teamId` string, uuid
  - `rules` AllQuietApiRoutingsModelsRoutingRule[], nullable
    - `id` string, uuid
    - `displayName` string, nullable
    - `conditions` AllQuietApiRoutingsModelsRoutingRuleConditions
      - `statuses` string[], nullable
      - `severities` string[], nullable
      - `integrations` string[], nullable
      - `services` string[], nullable
      - `intents` string[], nullable
      - `labels` string[], nullable
      - `labelsMatchType` string, nullable
      - `attributes` AllQuietApiRoutingsModelsRoutingRuleAttribute[], nullable
        - `name` string, nullable
        - `operator` string, nullable
        - `value` string, nullable
        - `ignoreCase` boolean
      - `attributesMatchType` string, nullable
      - `dateRestriction` AllQuietApiRoutingsModelsRoutingRuleDateRestriction
        - `from` string, date-time, nullable
        - `until` string, date-time, nullable
      - `schedule` AllQuietApiRoutingsModelsRoutingRuleSchedule
        - `after` string, time, nullable
        - `before` string, time, nullable
        - `daysOfWeek` string[], nullable
        - `from` string, time, nullable
        - `until` string, time, nullable
        - `selectedDays` string[], nullable
    - `actions` AllQuietApiRoutingsModelsRoutingRuleActions
      - `assignToTeams` string[], nullable
      - `assignToTeamsRepeatAlerts` boolean
      - `changeSeverity` string, nullable
      - `addInteraction` string, nullable
      - `forwardToOutboundIntegrations` string[], nullable
      - `affectsServices` string[], nullable
      - `excludeFromUptimeCalculation` boolean
      - `comment` string, nullable
      - `messageIsPublic` boolean
      - `snoozeForRelativeInMinutes` integer, nullable
      - `snoozeUntilAbsolute` string, time, nullable
      - `snoozeUntilWeekdayAbsolute` string, nullable
      - `ruleFlowControl` string, nullable
      - `discard` boolean
      - `deleteInRelativeInSeconds` integer, nullable
      - `setAttributes` AllQuietApiRoutingsModelsRoutingRuleSetAttribute[], nullable
        - `name` string, nullable
        - `value` string, nullable
        - `isImage` boolean
        - `hideInPreviews` boolean
      - `delayActionsInMinutes` integer, nullable
    - `channels` AllQuietApiRoutingsModelsRoutingRuleChannels
      - `outboundIntegrations` string[], nullable
      - `outboundIntegrationsMuted` boolean
      - `notificationChannels` string[], nullable
      - `notificationChannelsMuted` boolean
  - `teamConnectionSettings` AllQuietApiTeamsCommonTeamConnectionSettings
    - `teamConnectionMode` string, nullable
    - `teamIds` string[], nullable

---

[API](https://skmtc.dev/allquiet/apis/all-quiet-public-api.md) - [All operations](https://skmtc.dev/allquiet/apis/all-quiet-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/allquiet/apis/all-quiet-public-api/revisions/bd7da0475359?raw)
