Upload Demand Data
Upload your demand data as CSV, line-delimited JSON or JSON.
Authorizations
AuthorizationstringRequired
Enter your PredictHQ API key. The Bearer prefix is added automatically.
When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating
Path parameters
analysis_idstringRequired
An existing Beam Analysis ID.
Header parameters
Content-Typestring · enumRequiredExample:
Content type of the uploaded payload.
text/csv— CSV format withdateanddemandcolumns.application/x-ndjson— newline-delimited JSON, one{"date": ..., "demand": ...}object per line.application/json— a JSON array of{"date": ..., "demand": ...}objects.application/x-ldjson— deprecated, please useapplication/x-ndjson.
text/csvPossible values: Body
A single demand data point consisting of a date and a positive numeric demand value.
datestring · dateRequiredExample:
ISO8601 Date format (YYYY-MM-DD)
2023-01-01demandnumberRequiredExample:
Number value (float or integer, must be a positive number).
12.235Responses
202
Successful Response
No content
400
Bad Request
application/json
401
Unauthorized
application/json
403
Bearer token scope insufficient
application/json
404
Analysis not found
application/json
409
Data conflict
application/json
post/v1/beam/analyses/{analysis_id}/sink
No content
Error Codes
Code
Description
Examples
OpenAPI Spec
Guides
Last updated
Was this helpful?