Station Group
200 OK
Bad Request - The server could not process the request due to invalid input, missing required parameters, or malformed syntax.
Unauthorized - Authentication is missing or invalid. Ensure you provide a valid token or credentials to access this resource.
Forbidden - You are authenticated but do not have permission to perform this action. Contact the administrator if you believe this is an error.
Conflict - The request could not be completed due to a conflict with the current state of the resource, such as a duplicate record or a versioning issue.
Internal Server Error - An unexpected error occurred on the server. Please try again later or contact support if the issue persists.
GET /api/station-group HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "isSuccess": true,
  "results": [
    {
      "code": "text",
      "name": "text",
      "plantCode": "text",
      "accountId": "text",
      "allowScheduleStationFlexibility": true,
      "shiftPatternId": 1,
      "allowQuickScheduleStart": true,
      "createdAt": "text",
      "updatedAt": "text",
      "plantTimezone": "text",
      "stations": [
        {
          "accountId": "text",
          "code": "text",
          "name": "text",
          "groupCode": "text",
          "shiftPatternId": null,
          "moduleVisibility": [
            "utilisation"
          ],
          "minimumCycleTime": null,
          "speedScale": null,
          "speedOffset": null,
          "speedToProductionRatio": null,
          "electricalPowerNominalKw": null,
          "idleCostPerMinute": null,
          "downtimeDetectionMode": "utilisation",
          "utilisationDowntimeThreshold": 1,
          "slowDurationThreshold": null,
          "forceAllShiftTimeAsPlannedProduction": true,
          "productiveStatusMode": "productive_signal",
          "electricalUsageStoppedThresholdKw": null,
          "lineSpeedStoppedThreshold": null,
          "productiveHoldOnTime": null,
          "allowInterruptionMode": false,
          "allowManualProduction": false,
          "allowQuickScheduleStart": false,
          "allowScheduleCutShort": false,
          "currentOperatorInitials": null,
          "statusCode": null,
          "statusCodeUpdatedAt": null,
          "cycleTime": null,
          "unitsPerMinute": null,
          "unitsPerHour": null,
          "lineSpeedTarget": null,
          "createdAt": null,
          "updatedAt": null,
          "archivedAt": null
        }
      ],
      "shifts": [
        {
          "id": 1,
          "name": "text",
          "startHour": 1,
          "duration": 1,
          "accountId": "text",
          "shiftPatternId": 1,
          "weekDay": "text"
        }
      ]
    }
  ]
}^([a-zA-Z0-9-_]+)$Plant Code: The unique code for this plant.
^[a-z0-9\-]*$false200 OK
Bad Request - The server could not process the request due to invalid input, missing required parameters, or malformed syntax.
Unauthorized - Authentication is missing or invalid. Ensure you provide a valid token or credentials to access this resource.
Forbidden - You are authenticated but do not have permission to perform this action. Contact the administrator if you believe this is an error.
Conflict - The request could not be completed due to a conflict with the current state of the resource, such as a duplicate record or a versioning issue.
Internal Server Error - An unexpected error occurred on the server. Please try again later or contact support if the issue persists.
POST /api/station-group HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 138
{
  "code": "text",
  "name": "text",
  "plantCode": "text",
  "allowScheduleStationFlexibility": false,
  "shiftPatternId": 1,
  "allowQuickScheduleStart": true
}{
  "isSuccess": true,
  "results": [
    {
      "code": "text",
      "name": "text",
      "plantCode": "text",
      "accountId": "text",
      "allowScheduleStationFlexibility": true,
      "shiftPatternId": 1,
      "allowQuickScheduleStart": true,
      "createdAt": "text",
      "updatedAt": "text"
    }
  ]
}^([a-zA-Z0-9-_]+)$200 OK
Bad Request - The server could not process the request due to invalid input, missing required parameters, or malformed syntax.
Unauthorized - Authentication is missing or invalid. Ensure you provide a valid token or credentials to access this resource.
Forbidden - You are authenticated but do not have permission to perform this action. Contact the administrator if you believe this is an error.
Conflict - The request could not be completed due to a conflict with the current state of the resource, such as a duplicate record or a versioning issue.
Internal Server Error - An unexpected error occurred on the server. Please try again later or contact support if the issue persists.
GET /api/station-group/{code} HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "isSuccess": true,
  "result": {
    "code": "text",
    "name": "text",
    "plantCode": "text",
    "accountId": "text",
    "allowScheduleStationFlexibility": true,
    "shiftPatternId": 1,
    "allowQuickScheduleStart": true,
    "createdAt": "text",
    "updatedAt": "text",
    "plantTimezone": "text",
    "stations": [
      {
        "accountId": "text",
        "code": "text",
        "name": "text",
        "groupCode": "text",
        "shiftPatternId": null,
        "moduleVisibility": [
          "utilisation"
        ],
        "minimumCycleTime": null,
        "speedScale": null,
        "speedOffset": null,
        "speedToProductionRatio": null,
        "electricalPowerNominalKw": null,
        "idleCostPerMinute": null,
        "downtimeDetectionMode": "utilisation",
        "utilisationDowntimeThreshold": 1,
        "slowDurationThreshold": null,
        "forceAllShiftTimeAsPlannedProduction": true,
        "productiveStatusMode": "productive_signal",
        "electricalUsageStoppedThresholdKw": null,
        "lineSpeedStoppedThreshold": null,
        "productiveHoldOnTime": null,
        "allowInterruptionMode": false,
        "allowManualProduction": false,
        "allowQuickScheduleStart": false,
        "allowScheduleCutShort": false,
        "currentOperatorInitials": null,
        "statusCode": null,
        "statusCodeUpdatedAt": null,
        "cycleTime": null,
        "unitsPerMinute": null,
        "unitsPerHour": null,
        "lineSpeedTarget": null,
        "createdAt": null,
        "updatedAt": null,
        "archivedAt": null
      }
    ],
    "shifts": [
      {
        "id": 1,
        "name": "text",
        "startHour": 1,
        "duration": 1,
        "accountId": "text",
        "shiftPatternId": 1,
        "weekDay": "text"
      }
    ]
  }
}^([a-zA-Z0-9-_]+)$204 No Content
No content
Bad Request - The server could not process the request due to invalid input, missing required parameters, or malformed syntax.
Unauthorized - Authentication is missing or invalid. Ensure you provide a valid token or credentials to access this resource.
Forbidden - You are authenticated but do not have permission to perform this action. Contact the administrator if you believe this is an error.
Conflict - The request could not be completed due to a conflict with the current state of the resource, such as a duplicate record or a versioning issue.
Internal Server Error - An unexpected error occurred on the server. Please try again later or contact support if the issue persists.
DELETE /api/station-group/{code} HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*
No content