✔️ Add field to a Stream
POST {{host}}{{api-path}}/streams/fields
Create fields
To create fields, add the following in the request header:
x-bytebeam-tenant: <tenant>
x-bytebeam-api-key: <your api-key>
The request body consist of following keys:
- :streamName
- :fieldName
- :fieldType
An example to the request body is given below:
{
    "streamName": "gps",
    "fieldName": "Nora",
    "fieldType": "Int8"
}
Request Body
{"streamName"=>"{{randomExistingStreamName}}", "fieldName"=>"{{$randomNoun}}", "fieldType"=>"{{randomFieldType}}"}
HEADERS
| Key | Datatype | Required | Description | 
|---|---|---|---|
| x-bytebeam-tenant | string | ||
| x-bytebeam-api-key | string | 
RESPONSES
status: OK
{"result":"Audreanne"}