---
title: "Parse inlong stream fields from statement"
method: POST
path: "/inlong/manager/api/stream/parseFields"
tags: ["Inlong-Stream-API"]
---

# Parse inlong stream fields from statement

`POST /inlong/manager/api/stream/parseFields`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- ParseFieldRequestWithStream
  - `method` string: Parse method: json or sql
  - `statement` string: Statement for create fields

## Response `200`

OK

- ResponseListStreamFieldConfiguration
  - `data` StreamFieldConfiguration[]
    - `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
  - `errMsg` string
  - `success` boolean

## Other responses

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

---

[API](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api.md) - [All operations](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/revisions/41c687f48683?raw)
