Account

get
Authorizations
Responses
200
200 OK
application/json
get
GET /api/account HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "isSuccess": true,
  "result": {
    "id": "text",
    "domain": "text",
    "stationCountLimit": 1,
    "electricalPricePerKwh": 1,
    "electricalCo2PerKwh": 1,
    "currency": "text",
    "enableLostProductionCost": true,
    "dashboardConfig": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "redshiftPassword": "text",
    "uploadTransforms": "text",
    "defaultAutoEndOnQuantityComplete": true,
    "createdAt": "text",
    "updatedAt": "text",
    "cursors": [
      {
        "type": "text",
        "timestamp": 1,
        "value": "text",
        "valueAgo": "text"
      }
    ],
    "redshiftConfig": {
      "host": "text",
      "port": 1,
      "username": "text"
    }
  }
}
post
Authorizations
Body
enableLostProductionCostbooleanOptionalDefault: false
currencystring · enum | nullableOptionalPossible values:
electricalPricePerKwhnumber | nullableOptional
electricalCo2PerKwhnumber | nullableOptional
dashboardConfigstring | nullableOptional
resetRedshiftPasswordbooleanOptional
uploadTransformsstringOptional
defaultAutoEndOnQuantityCompletebooleanOptionalDefault: false
Responses
200
200 OK
application/json
post
POST /api/account HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 222

{
  "enableLostProductionCost": false,
  "currency": "GBP",
  "electricalPricePerKwh": 1,
  "electricalCo2PerKwh": 1,
  "dashboardConfig": "text",
  "resetRedshiftPassword": true,
  "uploadTransforms": "text",
  "defaultAutoEndOnQuantityComplete": false
}
{
  "isSuccess": true,
  "result": {
    "id": "text",
    "domain": "text",
    "stationCountLimit": 1,
    "electricalPricePerKwh": 1,
    "electricalCo2PerKwh": 1,
    "currency": "text",
    "enableLostProductionCost": true,
    "dashboardConfig": {
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "redshiftPassword": "text",
    "uploadTransforms": "text",
    "defaultAutoEndOnQuantityComplete": true,
    "createdAt": "text",
    "updatedAt": "text"
  }
}