---
title: "Update destination"
method: PATCH
path: "/api/destinations/{id}"
tags: ["Platform API"]
---

# Update destination

`PATCH /api/destinations/{id}`

Update one Slack channel automation destination. Responses include masked configuration only. Passing isDefault true makes it the default fallback destination and enables it.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateDestinationRequest
  - `type` 'SLACK_CHANNEL', required
  - `label` string
  - `enabled` boolean
  - `isDefault` true — Set this Slack destination as the default fallback destination.

## Response `200`

Destination was updated.

- UpdateDestinationCommandSuccess
  - `ok` true, required
  - `commandId` 'destination.update', required
  - `commandVersion` 1, required
  - `correlationId` string, required
  - `result` object, required
    - `operationId` 'destination.update', required
    - `status` 'completed', required
    - `resources` CommandResource[], required
      - `type` string, required
      - `id` string, required
    - `data` object, required
      - `destination` DestinationRead, required
        - `id` string, uuid, required
        - `key` string, required
        - `name` string, required
        - `description` string, nullable, required
        - `provider` 'SLACK' | 'OUTPOST' | 'WEBHOOK', required
        - `kind` 'SLACK_CHANNEL' | 'WEBHOOK_ENDPOINT', required
        - `enabled` boolean, required
        - `maskedConfig` object, nullable, required
        - `syncStatus` 'PENDING_PROVIDER_SYNC' | 'SYNCED' | 'PROVIDER_ERROR' | 'DISABLED_BY_PROVIDER', required
        - `lastSyncedAt` string, date-time, nullable, required
        - `providerErrorCode` string, nullable, required
        - `providerErrorMessage` string, nullable, required
        - `isDefault` boolean, required
        - `schemaVersion` string, required
        - `configHash` string, nullable, required
        - `archivedAt` string, date-time, nullable, required
        - `createdAt` string, date-time, required
        - `updatedAt` string, date-time, required
    - `warnings` string[], required
    - `auditId` string

## Other responses

- `400` — The request body failed command validation.
- `401` — Invalid or missing API key.
- `403` — The API key is valid but does not have the required agent write scope.
- `404` — No resource was found for the authenticated organization and requested id.
- `409` — The requested change conflicts with the current platform state.
- `500` — Internal server error.
- `503` — The platform could not complete the command.

## Changes

- **2026-06-30** `136fb21c17b8` — 3 breaking, 3 info
  - added the new required request property `type`
  - removed `subschema #1, subschema #2` from the request body `oneOf` list
  - the request's body type/format changed from ``/`` to `object`/``
  - added the new optional request property `enabled`
  - …2 more
- **2026-06-30** `5cfd3cf65a6b` — 1 info
  - added the new optional request property `oneOf[subschema #2]/isDefault`
- **2026-06-29** `012f9a36abf9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/outlitai/apis/outlit-api/changes/api/destinations/:id/patch.md)

---

[API](https://skmtc.dev/outlitai/apis/outlit-api.md) · [All operations](https://skmtc.dev/outlitai/apis/outlit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outlitai/outlit-api/revisions/147173adbb3f/schema)
