Reason

get
Authorizations
Query parameters
codesstringOptional
typestring · enumOptionalPossible values:
Responses
200
200 OK
application/json
get
GET /api/reason HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "isSuccess": true,
  "results": [
    {
      "code": "text",
      "description": "text",
      "parentReasonCode": "text",
      "type": [
        "downtime"
      ]
    }
  ]
}
post
Authorizations
Body
codestring · min: 1 · max: 50Required
descriptionstring · min: 1 · max: 50Required
parentReasonCodestring | nullableOptional
Responses
200
200 OK
application/json
post
POST /api/reason HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 82

{
  "code": "text",
  "description": "text",
  "parentReasonCode": "text",
  "type": [
    "downtime"
  ]
}
{
  "isSuccess": true,
  "result": {
    "accountId": "text",
    "code": "text",
    "description": "text",
    "parentReasonCode": "text",
    "type": [
      "downtime"
    ],
    "createdAt": "text",
    "updatedAt": "text"
  }
}
delete
Authorizations
Path parameters
codestring · min: 1 · max: 50Required
Responses
204
204 No Content
delete
DELETE /api/reason/{code} HTTP/1.1
Host: demo.busroot.com
X-API-KEY: YOUR_API_KEY
Accept: */*

No content