POST
/
project
curl --request POST \
  --url https://api.chartbrew.com/project \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "team_id": 123,
  "dashboardTitle": "<string>",
  "description": "<string>"
}'
{
  "id": 123,
  "team_id": 123,
  "name": "<string>",
  "brewName": "<string>",
  "dashboardTitle": "<string>",
  "description": "<string>",
  "backgroundColor": "#103751",
  "titleColor": "white",
  "headerCode": "<string>",
  "footerCode": "<string>",
  "logo": "<string>",
  "logoLink": "<string>",
  "public": false,
  "passwordProtected": false,
  "timezone": "<string>",
  "updateSchedule": {
    "timezone": "Asia/Bangkok",
    "frequency": "every_x_minutes",
    "frequencyNumber": "1",
    "time": {
      "hour": 9,
      "minute": 0,
      "second": 0,
      "millisecond": 0
    }
  },
  "lastUpdatedAt": "2023-11-07T05:31:56Z",
  "Charts": [
    {
      "id": "<string>",
      "name": "<string>",
      "type": "<string>",
      "subType": "<string>",
      "chartData": {},
      "chartDataUpdated": "2023-11-07T05:31:56Z",
      "project_id": "<string>",
      "public": true,
      "shareable": true,
      "ChartDatasetConfigs": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "chart_id": 123,
          "dataset_id": 123,
          "formula": "<string>",
          "datasetColor": "<string>",
          "fillColor": "<string>",
          "fill": false,
          "multiFill": false,
          "legend": "<string>",
          "pointRadius": 123,
          "excludedFields": [
            "<string>"
          ],
          "sort": "<string>",
          "columnsOrder": [
            "<string>"
          ],
          "order": 0,
          "maxRecords": 123,
          "goal": 123
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
team_id
integer
required
dashboardTitle
string
description
string

Response

200
application/json
Created dashboard
id
integer
team_id
integer
name
string
brewName
string
dashboardTitle
string
description
string
backgroundColor
string
default:
#103751
titleColor
string
default:
white
headerCode
string
public
boolean
default:
false
passwordProtected
boolean
default:
false
timezone
string
updateSchedule
object
lastUpdatedAt
string
Charts
object[]