---
title: "Update import stream"
method: PATCH
path: "/import/streams/{id}"
tags: ["Import Streams"]
---

# Update import stream

`PATCH /import/streams/{id}`

Update an existing import stream.

## Path parameters

- `id` string, required

## Request body

- UpdateStreamRequest
  - `stream` UpdateStreamOptions, required
    - `name` string — Name for this stream.
    - `is_enabled` boolean — Whether this stream is enabled.
    - `mappings` MappingOptions[] — Field mappings for this stream.
      - `field_type` string, required — Type of field mapping (field or expression).
      - `column` object — Column reference for field type mappings.
      - `expression` object — Configuration for expression field mappings.
      - `target_field` string, required — The target field name in the destination.

## Response `200`

OK

- object
  - `status` 'success', required
  - `data` GetStreamResponse, required
    - `stream` StreamResource, required
      - `id` string, required
      - `name` string, required
      - `is_enabled` boolean, required
      - `destination_id` string, required
      - `dataset_id` string, required
      - `mappings` MappingResource[], required
        - `field_type` string, required
        - `column` object
        - `expression` object
        - `target_field` string, required
      - `created_at` string, required
      - `updated_at` string, required
  - `message` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/prequel/apis/prequel-data-export.md) · [All operations](https://skmtc.dev/prequel/apis/prequel-data-export/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prequel/prequel-data-export/revisions/09c662a871f8/schema)
