Plant

get
Authorizations
Query parameters
stationcodesstringOptional

Comma-separated list of Station Codes.

plantcodestring · min: 1Optional
Responses
200

200 OK

application/json
get
GET /api/plant HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "isSuccess": true,
  "results": [
    {
      "code": "text",
      "name": "text",
      "timezone": "text",
      "now": "text",
      "stationGroups": [
        {
          "code": "text",
          "name": "text",
          "plantCode": "text",
          "allowScheduleStationFlexibility": true,
          "shiftPatternId": 1,
          "allowQuickScheduleStart": true,
          "createdAt": "text",
          "updatedAt": "text"
        }
      ],
      "dayStartHour": 1
    }
  ]
}
post
Authorizations
Body
codestring · min: 3 · max: 55Required

Plant Code: The unique code for this plant.

Pattern: ^[a-z0-9\-]*$
namestring · min: 3 · max: 55Required

Plant Name: The display name for this plant.

dayStartHournumber · max: 24Optional

Start Hour for Day: The normal time this plant starts for the day. When running 24 hours a day, this time will be considered the start and end when reporting by day.

timezonestring · enumOptional

Timezone: The timezone the plant operates in.

Possible values:
Responses
200

200 OK

application/json
post
POST /api/plant HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 63

{
  "code": "text",
  "name": "text",
  "dayStartHour": 1,
  "timezone": "UTC"
}
{
  "isSuccess": true,
  "result": {
    "code": "text",
    "name": "text",
    "timezone": "text",
    "now": "text",
    "stationGroups": [
      {
        "code": "text",
        "name": "text",
        "plantCode": "text",
        "allowScheduleStationFlexibility": true,
        "shiftPatternId": 1,
        "allowQuickScheduleStart": true,
        "createdAt": "text",
        "updatedAt": "text"
      }
    ],
    "dayStartHour": 1
  }
}
post
Authorizations
Body
plantCodestring · min: 3 · max: 55Required

Plant Code: The unique code for this plant.

Pattern: ^[a-z0-9\-]*$
Responses
200

200 OK

application/json
post
POST /api/plant/archive HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20

{
  "plantCode": "text"
}
{
  "isSuccess": true,
  "result": {
    "code": null
  }
}