✔️ 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

KeyDatatypeRequiredDescription
x-bytebeam-tenantstring
x-bytebeam-api-keystring

RESPONSES

status: OK

{&quot;result&quot;:&quot;Audreanne&quot;}