GET api/v1/cancelreasons/categories/department/{departmentId}

Gets All Categories enabled by a given deparment

Request Information

URI Parameters

NameDescriptionTypeAdditional information
departmentId

integer

Required

Body Parameters

None.

Response Information

Resource Description

ApiResponseModelOfListOfCancelReasonCategoryRequestModel
NameDescriptionTypeAdditional information
Data

ApiResponseDataModelOfListOfCancelReasonCategoryRequestModel

None.

Errors

Collection of string

None.

Warnings

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "PageSize": 1,
    "Page": 2,
    "TotalPages": 3,
    "TotalResults": 4,
    "Results": [
      {
        "CategoryId": 1,
        "Category": "sample string 2",
        "IsDisabled": true,
        "ExcludeFromReporting": true,
        "InUseCount": 5,
        "EnabledCount": 6,
        "IsSystem": true,
        "Reasons": [
          {
            "CategoryId": 1,
            "Category": "sample string 2",
            "ReasonId": 3,
            "Reason": "sample string 4",
            "IsDisabled": true,
            "ExcludeFromReporting": true,
            "InUseCount": 7,
            "EnabledCount": 8,
            "IsSystem": true,
            "IsExcludedFromStaffReports": true
          },
          {
            "CategoryId": 1,
            "Category": "sample string 2",
            "ReasonId": 3,
            "Reason": "sample string 4",
            "IsDisabled": true,
            "ExcludeFromReporting": true,
            "InUseCount": 7,
            "EnabledCount": 8,
            "IsSystem": true,
            "IsExcludedFromStaffReports": true
          }
        ]
      },
      {
        "CategoryId": 1,
        "Category": "sample string 2",
        "IsDisabled": true,
        "ExcludeFromReporting": true,
        "InUseCount": 5,
        "EnabledCount": 6,
        "IsSystem": true,
        "Reasons": [
          {
            "CategoryId": 1,
            "Category": "sample string 2",
            "ReasonId": 3,
            "Reason": "sample string 4",
            "IsDisabled": true,
            "ExcludeFromReporting": true,
            "InUseCount": 7,
            "EnabledCount": 8,
            "IsSystem": true,
            "IsExcludedFromStaffReports": true
          },
          {
            "CategoryId": 1,
            "Category": "sample string 2",
            "ReasonId": 3,
            "Reason": "sample string 4",
            "IsDisabled": true,
            "ExcludeFromReporting": true,
            "InUseCount": 7,
            "EnabledCount": 8,
            "IsSystem": true,
            "IsExcludedFromStaffReports": true
          }
        ]
      }
    ]
  },
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "Warnings": [
    "sample string 1",
    "sample string 2"
  ]
}