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": "632f5bf4-1454-4332-9e4c-0835d0e875f1",
"AssetId": "334dcff3-dc3c-474b-ab77-7c2e698d46ef",
"BuildingId": "0ad51f04-eb75-4d2d-9d34-cfa291ec4459",
"SubBuildingId": "28b74fc0-1609-4de9-986d-a3048e9818ae",
"CategoryId": "0d0faadf-4ecb-4ad9-ac7a-30a09ca80d13",
"DepartmentId": "2357e08b-4850-42f6-b628-c90dcbbb96ff",
"GetDepartmentAssign": true
}
text/html, multipart/form-data
Sample:
{"DivisionId":"632f5bf4-1454-4332-9e4c-0835d0e875f1","AssetId":"334dcff3-dc3c-474b-ab77-7c2e698d46ef","BuildingId":"0ad51f04-eb75-4d2d-9d34-cfa291ec4459","SubBuildingId":"28b74fc0-1609-4de9-986d-a3048e9818ae","CategoryId":"0d0faadf-4ecb-4ad9-ac7a-30a09ca80d13","DepartmentId":"2357e08b-4850-42f6-b628-c90dcbbb96ff","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>334dcff3-dc3c-474b-ab77-7c2e698d46ef</AssetId> <BuildingId>0ad51f04-eb75-4d2d-9d34-cfa291ec4459</BuildingId> <CategoryId>0d0faadf-4ecb-4ad9-ac7a-30a09ca80d13</CategoryId> <DepartmentId>2357e08b-4850-42f6-b628-c90dcbbb96ff</DepartmentId> <DivisionId>632f5bf4-1454-4332-9e4c-0835d0e875f1</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>28b74fc0-1609-4de9-986d-a3048e9818ae</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": "6e4f0083-e337-49ae-a4fc-98e6d820432e",
"DetailId": "1ca2cd26-d506-40ba-98d3-5e6c5a388740"
},
{
"Name": "sample string 1",
"NameAr": "sample string 2",
"UserId": 3,
"Selected": 4,
"MasterId": "6e4f0083-e337-49ae-a4fc-98e6d820432e",
"DetailId": "1ca2cd26-d506-40ba-98d3-5e6c5a388740"
}
],
"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":"6e4f0083-e337-49ae-a4fc-98e6d820432e","DetailId":"1ca2cd26-d506-40ba-98d3-5e6c5a388740"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"6e4f0083-e337-49ae-a4fc-98e6d820432e","DetailId":"1ca2cd26-d506-40ba-98d3-5e6c5a388740"}],"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>1ca2cd26-d506-40ba-98d3-5e6c5a388740</d2p1:DetailId>
<d2p1:MasterId>6e4f0083-e337-49ae-a4fc-98e6d820432e</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>1ca2cd26-d506-40ba-98d3-5e6c5a388740</d2p1:DetailId>
<d2p1:MasterId>6e4f0083-e337-49ae-a4fc-98e6d820432e</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>