POST public-api/departments/infosearch
This method returns all active departments whose department code or name contains the specified text that is submitted. It requires the Allow Department permission. This method does not provide List of Messages on response information. Note: This is a Post API to avoid limitations inherent to passing parameters on the URL.
Request Information
URI Parameters
None.
Body Parameters
DepartmentContainsSearchParameters| Name | Description | Type | Additional information |
|---|---|---|---|
| SearchPattern | string |
None. |
Request Formats
application/json
Sample:
{
"SearchPattern": "sample string 1"
}
Response Information
Resource Description
WaspResultOfListOfDepartmentModelInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Collection of DepartmentModelInfo |
None. |
|
| Messages | Collection of WtResult |
None. |
|
| BatchNumber | integer |
None. |
|
| HasError | boolean |
None. |
|
| HasHttpError | boolean |
None. |
|
| HasMessage | boolean |
None. |
|
| HasSuccessWithMoreDataRemaining | boolean |
None. |
|
| TotalRecordsLongCount | integer |
None. |
Response Formats
application/json
Sample:
{
"Data": [
{
"RowNumber": 1,
"DepartmentCode": "sample string 2",
"DepartmentName": "sample string 3",
"DepartmentRecordStatus": 0
},
{
"RowNumber": 1,
"DepartmentCode": "sample string 2",
"DepartmentName": "sample string 3",
"DepartmentRecordStatus": 0
}
],
"Messages": [
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
},
{
"ResultCode": 0,
"Message": "sample string 1",
"HttpStatusCode": 200,
"FieldName": "sample string 2"
}
],
"BatchNumber": 1,
"HasError": false,
"HasHttpError": false,
"HasMessage": true,
"HasSuccessWithMoreDataRemaining": false,
"TotalRecordsLongCount": 1
}