---
title: "Save stream source"
method: POST
path: "/inlong/manager/api/source/save"
tags: ["Stream-Source-API"]
---

# Save stream source

`POST /inlong/manager/api/source/save`

## Request body

- StreamSourceRequest
  - `agentIp` string — Ip of the agent running the task
  - `dataNodeName` string — Data node name
  - `fieldList` StreamFieldConfiguration[] — Field list, only support when inlong group in light weight mode
    - `extParams` string — Extra Param in JSON style
    - `fieldComment` string — Field comment
    - `fieldFormat` string — Field format, including: MICROSECONDS, MILLISECONDS, SECONDS, SQL, ISO_8601 and custom such as 'yyyy-MM-dd HH:mm:ss'. This is mainly used for time format
    - `fieldName` string, required — Field name
    - `fieldType` string, required — Field type
    - `fieldValue` string — Field value for constants
    - `id` integer — Field index
    - `inlongGroupId` string, required — inlong group id
    - `inlongStreamId` string, required — inlong stream id
    - `isMetaField` integer — Is this field a meta field, 0: no, 1: yes
    - `isPredefinedField` integer — Is predefined field, 1: yes, 0: no
    - `metaFieldName` string — Meta field name
    - `originFieldName` string — Origin field name before transform operation
    - `originNodeName` string — Origin node name which stream fields belong
    - `preExpression` string — Value expression of predefined field
  - `id` integer — Primary key
  - `inlongClusterName` string — Inlong cluster name
  - `inlongClusterNodeGroup` string — Inlong cluster node label for filtering stream source collect task
  - `inlongGroupId` string — Inlong group id
  - `inlongStreamId` string — Inlong stream id
  - `properties` object — Other properties if needed
  - `serializationType` string — Serialization type, support: csv, json, canal, avro, etc
  - `snapshot` string — Snapshot of the source task
  - `sourceName` string — Source name, unique in one stream
  - `sourceType` string — Source type, including: FILE, KAFKA, etc.
  - `uuid` string — Mac uuid of the agent running the task
  - `version` integer — Version

## Response `200`

OK

## Other responses

- `201` — Created
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/apache/apis/untitled-api-2.md) · [All operations](https://skmtc.dev/apache/apis/untitled-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apache/untitled-api-2/revisions/41c687f48683/schema)
