POST public/v2/pools/{poolKey}/stations/{stationId}/streams

Create a new stream in a specific pool and station

Request Information

URI Parameters

NameDescriptionTypeAdditional information
poolKey

globally unique identifier

Required

stationId

integer

Required

Body Parameters

BitPool.Base.DTO.BP_RegisterStream
NameDescriptionTypeAdditional information
LocalIndex

string

None.

StreamName

string

None.

Description

string

None.

Public

boolean

None.

DataType

BitPool.Base.Enums.StreamDataType

None.

Request Formats

application/json, text/json

Sample:
{
  "LocalIndex": "sample string 1",
  "StreamName": "sample string 2",
  "Description": "sample string 3",
  "Public": true,
  "DataType": "Double"
}

application/xml, text/xml

Sample:
<BP_RegisterStream>
  <LocalIndex>sample string 1</LocalIndex>
  <StreamName>sample string 2</StreamName>
  <Description>sample string 3</Description>
  <Public>true</Public>
  <DataType>Double</DataType>
</BP_RegisterStream>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BitPool.Base.Entities.BitStreamEntity
NameDescriptionTypeAdditional information
StreamKey

globally unique identifier

None.

LocalIndex

string

None.

Name

string

None.

Description

string

None.

RegistrationDate

date

None.

LastTimestamp

date

None.

FirstTimestamp

date

None.

LastValue

decimal number

None.

FirstValue

decimal number

None.

PoolKey

globally unique identifier

None.

Public

boolean

None.

Virtual

boolean

None.

VirtualType

BitPool.Base.Enums.StreamVirtualType

None.

Recalculate

boolean

None.

Weather

boolean

None.

Owner

boolean

None.

StreamLogsCount

integer

None.

PostProcessingType

BitPool.Base.Enums.PostProcessingType

None.

DataType

BitPool.Base.Enums.StreamDataType

None.

Response Formats

application/json, text/json

Sample:
{
  "StreamKey": "5fadc0f0-099c-46e5-b2e0-9c35e2f996df",
  "LocalIndex": "sample string 2",
  "Name": "sample string 3",
  "Description": "sample string 4",
  "RegistrationDate": "2019-05-19T18:25:19.019+00:00",
  "LastTimestamp": "2019-05-19T18:25:19.019+00:00",
  "FirstTimestamp": "2019-05-19T18:25:19.019+00:00",
  "LastValue": 1.1,
  "FirstValue": 1.1,
  "PoolKey": "361cdd42-daec-4e2d-82da-8f3b198845ed",
  "Public": true,
  "Virtual": true,
  "VirtualType": "Default",
  "Recalculate": true,
  "Weather": true,
  "Owner": true,
  "StreamLogsCount": 12,
  "PostProcessingType": "None",
  "DataType": "Double"
}

application/xml, text/xml

Sample:
<BitStreamEntity>
  <StreamKey>5fadc0f0-099c-46e5-b2e0-9c35e2f996df</StreamKey>
  <LocalIndex>sample string 2</LocalIndex>
  <Name>sample string 3</Name>
  <Description>sample string 4</Description>
  <RegistrationDate>2019-05-19T18:25:19.0199567+00:00</RegistrationDate>
  <LastTimestamp>2019-05-19T18:25:19.0199567+00:00</LastTimestamp>
  <FirstTimestamp>2019-05-19T18:25:19.0199567+00:00</FirstTimestamp>
  <LastValue>1.1</LastValue>
  <FirstValue>1.1</FirstValue>
  <PoolKey>361cdd42-daec-4e2d-82da-8f3b198845ed</PoolKey>
  <Public>true</Public>
  <Virtual>true</Virtual>
  <VirtualType>Default</VirtualType>
  <Recalculate>true</Recalculate>
  <Weather>true</Weather>
  <Owner>true</Owner>
  <StreamLogsCount>12</StreamLogsCount>
  <PostProcessingType>None</PostProcessingType>
  <DataType>Double</DataType>
</BitStreamEntity>