POST Api/Configuration/GetDepartmentsAdmins
Request Information
URI Parameters
None.
Body Parameters
DAdminFilters| Name | Description | Type | Additional information |
|---|---|---|---|
| DivisionId | globally unique identifier |
None. |
|
| AssetId | globally unique identifier |
None. |
|
| BuildingId | globally unique identifier |
None. |
|
| SubBuildingId | globally unique identifier |
None. |
|
| CategoryId | globally unique identifier |
None. |
|
| DepartmentId | globally unique identifier |
None. |
|
| GetDepartmentAssign | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"DivisionId": "9db0d0a6-b27e-4b4e-a487-cb4dea6cc972",
"AssetId": "2f8fc5bf-9400-4326-b038-dbe922a5e547",
"BuildingId": "8476d261-5959-4b95-b0c1-3a10d78a5782",
"SubBuildingId": "179a0a2e-3ba3-4f62-bac2-5026c6c333d4",
"CategoryId": "689202f2-d55f-41c7-a028-7a05ea020ef2",
"DepartmentId": "1bc0a1ed-308a-49c2-989c-b562a2f82cd7",
"GetDepartmentAssign": true
}
text/html, multipart/form-data
Sample:
{"DivisionId":"9db0d0a6-b27e-4b4e-a487-cb4dea6cc972","AssetId":"2f8fc5bf-9400-4326-b038-dbe922a5e547","BuildingId":"8476d261-5959-4b95-b0c1-3a10d78a5782","SubBuildingId":"179a0a2e-3ba3-4f62-bac2-5026c6c333d4","CategoryId":"689202f2-d55f-41c7-a028-7a05ea020ef2","DepartmentId":"1bc0a1ed-308a-49c2-989c-b562a2f82cd7","GetDepartmentAssign":true}
application/xml, text/xml
Sample:
<DAdminFilters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSMChecklistFlow.DTO.Models.Configuration"> <AssetId>2f8fc5bf-9400-4326-b038-dbe922a5e547</AssetId> <BuildingId>8476d261-5959-4b95-b0c1-3a10d78a5782</BuildingId> <CategoryId>689202f2-d55f-41c7-a028-7a05ea020ef2</CategoryId> <DepartmentId>1bc0a1ed-308a-49c2-989c-b562a2f82cd7</DepartmentId> <DivisionId>9db0d0a6-b27e-4b4e-a487-cb4dea6cc972</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>179a0a2e-3ba3-4f62-bac2-5026c6c333d4</SubBuildingId> </DAdminFilters>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
GlobalResponseOfListOfDadminsDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ResultCode | ReturnResultCode |
None. |
|
| Data | Collection of DadminsDTO |
None. |
|
| ResultMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResultCode": 1,
"Data": [
{
"Name": "sample string 1",
"NameAr": "sample string 2",
"UserId": 3,
"Selected": 4,
"MasterId": "93145a29-9f39-4a84-955e-e58bd766f964",
"DetailId": "a1964400-f79a-4766-9ee3-53085947eeb3"
},
{
"Name": "sample string 1",
"NameAr": "sample string 2",
"UserId": 3,
"Selected": 4,
"MasterId": "93145a29-9f39-4a84-955e-e58bd766f964",
"DetailId": "a1964400-f79a-4766-9ee3-53085947eeb3"
}
],
"ResultMessage": "sample string 1"
}
text/html, multipart/form-data
Sample:
{"ResultCode":1,"Data":[{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"93145a29-9f39-4a84-955e-e58bd766f964","DetailId":"a1964400-f79a-4766-9ee3-53085947eeb3"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"93145a29-9f39-4a84-955e-e58bd766f964","DetailId":"a1964400-f79a-4766-9ee3-53085947eeb3"}],"ResultMessage":"sample string 1"}
application/xml, text/xml
Sample:
<GlobalResponseOfArrayOfDadminsDTOWWZtRR1P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.DTO">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MSMChecklistFlow.DTO.Models.Configuration">
<d2p1:DadminsDTO>
<d2p1:DetailId>a1964400-f79a-4766-9ee3-53085947eeb3</d2p1:DetailId>
<d2p1:MasterId>93145a29-9f39-4a84-955e-e58bd766f964</d2p1:MasterId>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:NameAr>sample string 2</d2p1:NameAr>
<d2p1:Selected>4</d2p1:Selected>
<d2p1:UserId>3</d2p1:UserId>
</d2p1:DadminsDTO>
<d2p1:DadminsDTO>
<d2p1:DetailId>a1964400-f79a-4766-9ee3-53085947eeb3</d2p1:DetailId>
<d2p1:MasterId>93145a29-9f39-4a84-955e-e58bd766f964</d2p1:MasterId>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:NameAr>sample string 2</d2p1:NameAr>
<d2p1:Selected>4</d2p1:Selected>
<d2p1:UserId>3</d2p1:UserId>
</d2p1:DadminsDTO>
</Data>
<ResultCode>NullOrEmptyUserId</ResultCode>
<ResultMessage>sample string 1</ResultMessage>
</GlobalResponseOfArrayOfDadminsDTOWWZtRR1P>