cURL
curl --request POST \ --url https://api.chartbrew.com/team/{team_id}/datasets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "team_id": 123, "project_ids": [ 123 ], "name": "<string>", "connection_id": 123, "type": "<string>", "query": "<string>", "datasetColor": "<string>", "dateField": "<string>", "dateFormat": "<string>", "legend": "<string>", "configuration": {} }'
{ "id": 123, "team_id": 123, "project_ids": [ 123 ], "chart_id": 123, "connection_id": 123, "draft": true, "query": "<string>", "xAxis": "<string>", "xAxisOperation": "<string>", "yAxis": "<string>", "yAxisOperation": "none", "dateField": "<string>", "dateFormat": "<string>", "legend": "<string>", "fieldsSchema": {}, "excludedFields": [ "<string>" ], "configuration": {}, "joinSettings": { "joins": [ { "dr_id": 123, "join_id": 123, "dr_field": "<string>", "join_field": "<string>" } ] } }
Create a new dataset
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the team
Created dataset
The response is of type object.
object