POST api/v1/cancelreasons/associations
Save Department association
Request Information
URI Parameters
None.
Body Parameters
List of Departments and associated reasons
Collection of CancelReasonAssociationRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ReasonId | integer |
None. |
|
| DepartmentId | integer |
None. |
|
| IsAssociated | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"ReasonId": 2,
"DepartmentId": 3,
"IsAssociated": true
},
{
"Id": 1,
"ReasonId": 2,
"DepartmentId": 3,
"IsAssociated": true
}
]
Response Information
Resource Description
The updated CancelReasonConfigModel
ApiResponseModelOfListOfCancelReasonAssociationRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ApiResponseDataModelOfListOfCancelReasonAssociationRequestModel |
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": [
{
"Id": 1,
"ReasonId": 2,
"DepartmentId": 3,
"IsAssociated": true
},
{
"Id": 1,
"ReasonId": 2,
"DepartmentId": 3,
"IsAssociated": true
}
]
},
"Errors": [
"sample string 1",
"sample string 2"
],
"Warnings": [
"sample string 1",
"sample string 2"
]
}