# Streams

## GET /public/v2/pools/{poolKey}/stations/{stationId}/streams

> Return list of streams inside a specific station

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"BitPool.Base.Entities.BitStreamEntity":{"type":"object","properties":{"StreamKey":{"type":"string","format":"uuid"},"LocalIndex":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true},"RegistrationDate":{"type":"string","format":"date-time"},"LastTimestamp":{"type":"string","format":"date-time","nullable":true},"FirstTimestamp":{"type":"string","format":"date-time","nullable":true},"LastValue":{"type":"number","format":"double","nullable":true},"FirstValue":{"type":"number","format":"double","nullable":true},"PoolKey":{"type":"string","format":"uuid"},"Public":{"type":"boolean"},"Virtual":{"type":"boolean"},"VirtualType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamVirtualType"},"Recalculate":{"type":"boolean"},"Weather":{"type":"boolean"},"Owner":{"type":"boolean"},"StreamLogsCount":{"type":"integer","format":"int32"},"PostProcessingType":{"$ref":"#/components/schemas/BitPool.Base.Enums.PostProcessingType"},"DataType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamDataType"}},"additionalProperties":false},"BitPool.Base.Enums.StreamVirtualType":{"enum":[0,1,2,3],"type":"integer","description":"\n\n0 = Default\n\n1 = PowerToEnergy\n\n2 = AccumulatingToInterval\n\n3 = NoData","format":"int32"},"BitPool.Base.Enums.PostProcessingType":{"enum":[0,1,2],"type":"integer","description":"\n\n0 = None\n\n1 = SmoothData\n\n2 = Unknown","format":"int32"},"BitPool.Base.Enums.StreamDataType":{"enum":[0,1],"type":"integer","description":"\n\n0 = Double\n\n1 = String","format":"int32"}}},"paths":{"/public/v2/pools/{poolKey}/stations/{stationId}/streams":{"get":{"tags":["Streams"],"summary":"Return list of streams inside a specific station","parameters":[{"name":"poolKey","in":"path","description":"","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"stationId","in":"path","description":"","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BitPool.Base.Entities.BitStreamEntity"}}}}}}}}}}
```

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

> Create a new stream in a specific pool and station

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"BitPool.Base.DTO.BP_RegisterStream":{"type":"object","properties":{"LocalIndex":{"type":"string","nullable":true},"StreamName":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true},"DataType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamDataType"}},"additionalProperties":false},"BitPool.Base.Enums.StreamDataType":{"enum":[0,1],"type":"integer","description":"\n\n0 = Double\n\n1 = String","format":"int32"},"BitPool.Base.Entities.BitStreamEntity":{"type":"object","properties":{"StreamKey":{"type":"string","format":"uuid"},"LocalIndex":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true},"RegistrationDate":{"type":"string","format":"date-time"},"LastTimestamp":{"type":"string","format":"date-time","nullable":true},"FirstTimestamp":{"type":"string","format":"date-time","nullable":true},"LastValue":{"type":"number","format":"double","nullable":true},"FirstValue":{"type":"number","format":"double","nullable":true},"PoolKey":{"type":"string","format":"uuid"},"Public":{"type":"boolean"},"Virtual":{"type":"boolean"},"VirtualType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamVirtualType"},"Recalculate":{"type":"boolean"},"Weather":{"type":"boolean"},"Owner":{"type":"boolean"},"StreamLogsCount":{"type":"integer","format":"int32"},"PostProcessingType":{"$ref":"#/components/schemas/BitPool.Base.Enums.PostProcessingType"},"DataType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamDataType"}},"additionalProperties":false},"BitPool.Base.Enums.StreamVirtualType":{"enum":[0,1,2,3],"type":"integer","description":"\n\n0 = Default\n\n1 = PowerToEnergy\n\n2 = AccumulatingToInterval\n\n3 = NoData","format":"int32"},"BitPool.Base.Enums.PostProcessingType":{"enum":[0,1,2],"type":"integer","description":"\n\n0 = None\n\n1 = SmoothData\n\n2 = Unknown","format":"int32"}}},"paths":{"/public/v2/pools/{poolKey}/stations/{stationId}/streams":{"post":{"tags":["Streams"],"summary":"Create a new stream in a specific pool and station","parameters":[{"name":"poolKey","in":"path","description":"","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"stationId","in":"path","description":"","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"requestBody":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitPool.Base.DTO.BP_RegisterStream"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitPool.Base.Entities.BitStreamEntity"}}}}}}}}}
```

## GET /public/v2/pools/{poolKey}/streams

> Return list of streams inside a specific pool

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"BitPool.Base.Entities.BitStreamEntity":{"type":"object","properties":{"StreamKey":{"type":"string","format":"uuid"},"LocalIndex":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true},"RegistrationDate":{"type":"string","format":"date-time"},"LastTimestamp":{"type":"string","format":"date-time","nullable":true},"FirstTimestamp":{"type":"string","format":"date-time","nullable":true},"LastValue":{"type":"number","format":"double","nullable":true},"FirstValue":{"type":"number","format":"double","nullable":true},"PoolKey":{"type":"string","format":"uuid"},"Public":{"type":"boolean"},"Virtual":{"type":"boolean"},"VirtualType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamVirtualType"},"Recalculate":{"type":"boolean"},"Weather":{"type":"boolean"},"Owner":{"type":"boolean"},"StreamLogsCount":{"type":"integer","format":"int32"},"PostProcessingType":{"$ref":"#/components/schemas/BitPool.Base.Enums.PostProcessingType"},"DataType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamDataType"}},"additionalProperties":false},"BitPool.Base.Enums.StreamVirtualType":{"enum":[0,1,2,3],"type":"integer","description":"\n\n0 = Default\n\n1 = PowerToEnergy\n\n2 = AccumulatingToInterval\n\n3 = NoData","format":"int32"},"BitPool.Base.Enums.PostProcessingType":{"enum":[0,1,2],"type":"integer","description":"\n\n0 = None\n\n1 = SmoothData\n\n2 = Unknown","format":"int32"},"BitPool.Base.Enums.StreamDataType":{"enum":[0,1],"type":"integer","description":"\n\n0 = Double\n\n1 = String","format":"int32"}}},"paths":{"/public/v2/pools/{poolKey}/streams":{"get":{"tags":["Streams"],"summary":"Return list of streams inside a specific pool","parameters":[{"name":"poolKey","in":"path","description":"","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BitPool.Base.Entities.BitStreamEntity"}}}}}}}}}}
```

## GET /public/v2/streams/{streamKey}

> Return a specific stream

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"BitPool.Base.Entities.BitStreamEntity":{"type":"object","properties":{"StreamKey":{"type":"string","format":"uuid"},"LocalIndex":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true},"RegistrationDate":{"type":"string","format":"date-time"},"LastTimestamp":{"type":"string","format":"date-time","nullable":true},"FirstTimestamp":{"type":"string","format":"date-time","nullable":true},"LastValue":{"type":"number","format":"double","nullable":true},"FirstValue":{"type":"number","format":"double","nullable":true},"PoolKey":{"type":"string","format":"uuid"},"Public":{"type":"boolean"},"Virtual":{"type":"boolean"},"VirtualType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamVirtualType"},"Recalculate":{"type":"boolean"},"Weather":{"type":"boolean"},"Owner":{"type":"boolean"},"StreamLogsCount":{"type":"integer","format":"int32"},"PostProcessingType":{"$ref":"#/components/schemas/BitPool.Base.Enums.PostProcessingType"},"DataType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamDataType"}},"additionalProperties":false},"BitPool.Base.Enums.StreamVirtualType":{"enum":[0,1,2,3],"type":"integer","description":"\n\n0 = Default\n\n1 = PowerToEnergy\n\n2 = AccumulatingToInterval\n\n3 = NoData","format":"int32"},"BitPool.Base.Enums.PostProcessingType":{"enum":[0,1,2],"type":"integer","description":"\n\n0 = None\n\n1 = SmoothData\n\n2 = Unknown","format":"int32"},"BitPool.Base.Enums.StreamDataType":{"enum":[0,1],"type":"integer","description":"\n\n0 = Double\n\n1 = String","format":"int32"}}},"paths":{"/public/v2/streams/{streamKey}":{"get":{"tags":["Streams"],"summary":"Return a specific stream","parameters":[{"name":"streamKey","in":"path","description":"","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitPool.Base.Entities.BitStreamEntity"}}}}}}}}}
```

## PUT /public/v2/streams/{streamKey}

> Update a stream name or description

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"BitPool.Base.DTO.UpdateStreamDto":{"type":"object","properties":{"Name":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true}},"additionalProperties":false}}},"paths":{"/public/v2/streams/{streamKey}":{"put":{"tags":["Streams"],"summary":"Update a stream name or description","parameters":[{"name":"streamKey","in":"path","description":"","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"requestBody":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitPool.Base.DTO.UpdateStreamDto"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string"}}}}}}}}}
```

## DELETE /public/v2/streams/{streamKey}

> Delete a specific stream (including all logs)

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}}},"paths":{"/public/v2/streams/{streamKey}":{"delete":{"tags":["Streams"],"summary":"Delete a specific stream (including all logs)","parameters":[{"name":"streamKey","in":"path","description":"","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string"}}}}}}}}}
```

## POST /public/v2/streams

> Return a specific streams

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"BitPool.Base.Entities.BitStreamEntity":{"type":"object","properties":{"StreamKey":{"type":"string","format":"uuid"},"LocalIndex":{"type":"string","nullable":true},"Name":{"type":"string","nullable":true},"Description":{"type":"string","nullable":true},"RegistrationDate":{"type":"string","format":"date-time"},"LastTimestamp":{"type":"string","format":"date-time","nullable":true},"FirstTimestamp":{"type":"string","format":"date-time","nullable":true},"LastValue":{"type":"number","format":"double","nullable":true},"FirstValue":{"type":"number","format":"double","nullable":true},"PoolKey":{"type":"string","format":"uuid"},"Public":{"type":"boolean"},"Virtual":{"type":"boolean"},"VirtualType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamVirtualType"},"Recalculate":{"type":"boolean"},"Weather":{"type":"boolean"},"Owner":{"type":"boolean"},"StreamLogsCount":{"type":"integer","format":"int32"},"PostProcessingType":{"$ref":"#/components/schemas/BitPool.Base.Enums.PostProcessingType"},"DataType":{"$ref":"#/components/schemas/BitPool.Base.Enums.StreamDataType"}},"additionalProperties":false},"BitPool.Base.Enums.StreamVirtualType":{"enum":[0,1,2,3],"type":"integer","description":"\n\n0 = Default\n\n1 = PowerToEnergy\n\n2 = AccumulatingToInterval\n\n3 = NoData","format":"int32"},"BitPool.Base.Enums.PostProcessingType":{"enum":[0,1,2],"type":"integer","description":"\n\n0 = None\n\n1 = SmoothData\n\n2 = Unknown","format":"int32"},"BitPool.Base.Enums.StreamDataType":{"enum":[0,1],"type":"integer","description":"\n\n0 = Double\n\n1 = String","format":"int32"}}},"paths":{"/public/v2/streams":{"post":{"tags":["Streams"],"summary":"Return a specific streams","parameters":[{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"requestBody":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BitPool.Base.Entities.BitStreamEntity"}}}}}}}}}}
```

## GET /public/v2/streams/{streamKey}/lastTimestamp

> Return last timestamp of logs in specific stream

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}}},"paths":{"/public/v2/streams/{streamKey}/lastTimestamp":{"get":{"tags":["Streams"],"summary":"Return last timestamp of logs in specific stream","parameters":[{"name":"streamKey","in":"path","description":"","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string","format":"date-time"}}}}}}}}}
```

## GET /public/v2/streams/{streamKey}/additional

>

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"BitPool.Base.DTO.StreamAdditionalDto":{"type":"object","properties":{"SourceDeviceVendor":{"type":"string","nullable":true},"SourceDeviceModel":{"type":"string","nullable":true},"IsAccumulating":{"type":"boolean"},"AggregateType":{"$ref":"#/components/schemas/BitPool.Base.Enums.AggregateType"},"Calculation":{"type":"string","nullable":true},"Units":{"$ref":"#/components/schemas/BitPool.Base.Enums.Units"},"TargetUsage":{"type":"number","format":"double"},"UpperThreshold15m":{"type":"number","format":"double","nullable":true},"ChangeOfValue":{"type":"boolean"},"SpikeThreshold":{"type":"number","format":"double","nullable":true},"IsAccumulatingAuto":{"type":"boolean"}},"additionalProperties":false},"BitPool.Base.Enums.AggregateType":{"enum":[0,1,2,3,4,5,8,9,10],"type":"integer","description":"\n\n0 = None\n\n1 = Average\n\n2 = Maximum\n\n3 = Minimum\n\n4 = Difference\n\n5 = Sum\n\n8 = Accum\n\n9 = First\n\n10 = Last","format":"int32"},"BitPool.Base.Enums.Units":{"enum":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"type":"integer","description":"\n\n0 = None\n\n1 = kWh\n\n2 = Wh\n\n3 = kW\n\n4 = W\n\n5 = MWh\n\n6 = MW\n\n7 = VA\n\n8 = kVA\n\n9 = VAr\n\n10 = kVAr\n\n11 = pf\n\n12 = degC\n\n13 = percentage\n\n14 = A\n\n15 = V\n\n16 = m3","format":"int32"}}},"paths":{"/public/v2/streams/{streamKey}/additional":{"get":{"tags":["Streams"],"parameters":[{"name":"streamKey","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitPool.Base.DTO.StreamAdditionalDto"}}}}}}}}}
```

## POST /public/v2/streams/{streamKey}/additional

>

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"BitPool.Base.DTO.StreamAdditionalDto":{"type":"object","properties":{"SourceDeviceVendor":{"type":"string","nullable":true},"SourceDeviceModel":{"type":"string","nullable":true},"IsAccumulating":{"type":"boolean"},"AggregateType":{"$ref":"#/components/schemas/BitPool.Base.Enums.AggregateType"},"Calculation":{"type":"string","nullable":true},"Units":{"$ref":"#/components/schemas/BitPool.Base.Enums.Units"},"TargetUsage":{"type":"number","format":"double"},"UpperThreshold15m":{"type":"number","format":"double","nullable":true},"ChangeOfValue":{"type":"boolean"},"SpikeThreshold":{"type":"number","format":"double","nullable":true},"IsAccumulatingAuto":{"type":"boolean"}},"additionalProperties":false},"BitPool.Base.Enums.AggregateType":{"enum":[0,1,2,3,4,5,8,9,10],"type":"integer","description":"\n\n0 = None\n\n1 = Average\n\n2 = Maximum\n\n3 = Minimum\n\n4 = Difference\n\n5 = Sum\n\n8 = Accum\n\n9 = First\n\n10 = Last","format":"int32"},"BitPool.Base.Enums.Units":{"enum":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"type":"integer","description":"\n\n0 = None\n\n1 = kWh\n\n2 = Wh\n\n3 = kW\n\n4 = W\n\n5 = MWh\n\n6 = MW\n\n7 = VA\n\n8 = kVA\n\n9 = VAr\n\n10 = kVAr\n\n11 = pf\n\n12 = degC\n\n13 = percentage\n\n14 = A\n\n15 = V\n\n16 = m3","format":"int32"}}},"paths":{"/public/v2/streams/{streamKey}/additional":{"post":{"tags":["Streams"],"parameters":[{"name":"streamKey","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitPool.Base.DTO.StreamAdditionalDto"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string"}}}}}}}}}
```

## GET /public/v2/streams/{streamKey}/recalculate

>

```json
{"openapi":"3.0.1","info":{"title":"Bitpool API v2","version":"v2"},"servers":[{"url":"https://api.bitpool.com","description":"Production API"},{"url":"https://api.dev.bitpool.com","description":"Development API"}],"security":[{"Bitpool2":["readAccess","writeAccess"]}],"components":{"securitySchemes":{"Bitpool2":{"type":"apiKey","name":"Authorization","in":"header"}}},"paths":{"/public/v2/streams/{streamKey}/recalculate":{"get":{"tags":["Streams"],"parameters":[{"name":"streamKey","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"BPDateFormat","in":"header","description":"Date format header","required":true,"schema":{"type":"string","default":"ISO"}},{"name":"Accept","in":"header","description":"Accept header","required":true,"schema":{"type":"string","default":"application/json"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"string"}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki-cloud.bitpool.com/public-bitpool-api/streams.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
