---
title: "Update sla rule"
method: POST
path: "/v1/sla-rules/{id}"
tags: ["Sla Rules"]
---

# Update sla rule

`POST /v1/sla-rules/{id}`

Updates sla rule

## Path parameters

- `id` string, uuid, required

## Request body

- ExternalCreateSlaRule
  - `name` string, required
  - `segment` string, required
  - `priorities` ExternalConversationPriority[], nullable
  - `firstResponseTime` integer, required
  - `nextResponseTime` integer, required
  - `workingHours` 'always' | 'custom', required
  - `rank` number, required
  - `notifications` SlaRuleNotification[], required
    - `id` string
    - `name` string, required
    - `interval` integer, required
    - `condition` union, required
      - 'before'
      - 'after'
    - `channel` union, required
      - 'slack'
      - 'email'
    - `notify` union, required
      - string
      - string[]
    - `showFullDetailsPostAnswerInSlack` boolean, nullable
  - `channels` DeliveryType[]
  - `tags` string[], nullable
  - `teams` string[], nullable
  - `subChannels` string[], nullable

## Response `200`

Successful Response

- ExternalSlaRule
  - `name` string, required
  - `segment` string, required
  - `priorities` ExternalConversationPriority[], nullable
  - `firstResponseTime` integer, required
  - `nextResponseTime` integer, required
  - `workingHours` 'always' | 'custom', required
  - `rank` number, required
  - `notifications` SlaRuleNotification[], required
    - `id` string
    - `name` string, required
    - `interval` integer, required
    - `condition` union, required
      - 'before'
      - 'after'
    - `channel` union, required
      - 'slack'
      - 'email'
    - `notify` union, required
      - string
      - string[]
    - `showFullDetailsPostAnswerInSlack` boolean, nullable
  - `channels` DeliveryType[]
  - `tags` string[], nullable
  - `teams` string[], nullable
  - `subChannels` string[], nullable
  - `id` string, uuid, nullable
  - `companyId` string, uuid, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/atlas/apis/atlas-api.md) · [All operations](https://skmtc.net/atlas/apis/atlas-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlas/atlas-api/versions/d121925e599d/schema)
