---
title: "Reassign a log stream"
method: POST
path: "/log-streams/{streamId}/reassign"
tags: ["Log Streams"]
---

# Reassign a log stream

`POST /log-streams/{streamId}/reassign`

Move a log stream to a different connectionless log source in the same project. Preserves the stream's ID, intake key credential, and ingested data; rebinds the key's intake adapter to the target log source's provider so future data is processed as that provider's format.

## Path parameters

- `streamId` string, uuid, required — Log stream ID to reassign.

## Request body

- object
  - `targetLogSourceId` string, uuid, required — Log source to move the log stream under. Must be a connectionless log source in the same project; the stream's key is rebound to this log source's intake adapter.

## Response `200`

OK

- object
  - `stream` object, required
    - `id` string, uuid, required
    - `logSourceId` string, uuid, required — Root log source ID. Every log stream roots on exactly one log source.
    - `displayName` string, nullable, required — Log stream name, assigned by the server at creation and immutable: the vendor object's name when the log source connection supplies one, a generated mnemonic otherwise, and the log source's own name for connectionless log streams. Null only on legacy log streams created before names became required.
    - `config` object, required
    - `status` 'pending' | 'provisioning' | 'active' | 'error', required
    - `errorMessage` string, nullable, required
    - `enabled` boolean, required — Whether the log stream is currently ingesting. Independent of provisioning status: a paused log stream stays configured but stops accepting new data.
    - `provisionedVia` 'manual' | 'auto', required — How this log stream was created. "manual" for every user-initiated create (single add, select-all, API); "auto" only when the auto-provisioning scan created it because a new vendor object matched the log source's saved scope.
    - `createdAt` string, date-time, required
    - `endpointCards` object[] — Server-computed endpoint card(s) for this log stream's delivery key — where to point the sender. Present only for log streams that carry their own intake key.
      - `id` 'logs' | 'traces' | 'metrics' | 'listener' | 'endpoint', required — Stable identity for this card, computed by the platform. Address a card by this rather than by its position in the array or its label, both of which change for display reasons. `logs`/`traces`/`metrics` identify a signal-specific destination; `listener` is a non-keyed host+port; `endpoint` is the single keyed URL a source exposes when it does not split by signal. Unique within one log stream's cards.
      - `kind` 'url' | 'hostPort', required — Card shape. `url` = a complete keyed URL whose hostname authenticates; `hostPort` = a non-keyed listener host + port whose credential travels separately.
      - `label` string — Card label. Present when a log source exposes several endpoints (e.g. separate logs and traces destinations).
      - `url` string — The complete keyed intake URL. Present when kind is `url`.
      - `host` string — The regional listener hostname (no scheme). Present when kind is `hostPort`.
      - `port` integer — The listener port. Present when kind is `hostPort`.
      - `description` string — Vendor-specific guidance rendered under the value.
      - `extraCredential` object — The credential the sender must attach when the hostname alone does not authenticate. Present when kind is `hostPort`.
        - `label` string, required
        - `value` string, required
        - `description` string

## Changes

- **2026-09-18** `bf2ddbe801b3` — 1 info
  - added the required property `stream/endpointCards/items/id` to the response with the `200` status
- **2026-09-09** `3a25072f7c1e` — 1 info
  - added the required property `stream/provisionedVia` to the response with the `200` status

[Change history](https://skmtc.dev/sazabi/apis/sazabi-public-api/changes/log-streams/:streamId/reassign/post.md)

---

[API](https://skmtc.dev/sazabi/apis/sazabi-public-api.md) · [All operations](https://skmtc.dev/sazabi/apis/sazabi-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sazabi/apis/sazabi-public-api/revisions/88bb1e570de3?raw)
