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": "39f8477c-4c3f-47e9-b49b-bc6969482fd5",
"AssetId": "5d188c54-2b64-439a-b32b-5e2f0562afb6",
"BuildingId": "f7a06e89-e7ba-46b3-a026-364efba2edb4",
"SubBuildingId": "6e6fea98-97b7-4ac6-9856-b16543e86f67",
"CategoryId": "f1458f5e-da5a-41c0-a383-3364777664ad",
"DepartmentId": "da2451b8-9d28-478f-a5e9-daad7f44ac33",
"GetDepartmentAssign": true
}
text/html, multipart/form-data
Sample:
{"DivisionId":"39f8477c-4c3f-47e9-b49b-bc6969482fd5","AssetId":"5d188c54-2b64-439a-b32b-5e2f0562afb6","BuildingId":"f7a06e89-e7ba-46b3-a026-364efba2edb4","SubBuildingId":"6e6fea98-97b7-4ac6-9856-b16543e86f67","CategoryId":"f1458f5e-da5a-41c0-a383-3364777664ad","DepartmentId":"da2451b8-9d28-478f-a5e9-daad7f44ac33","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>5d188c54-2b64-439a-b32b-5e2f0562afb6</AssetId> <BuildingId>f7a06e89-e7ba-46b3-a026-364efba2edb4</BuildingId> <CategoryId>f1458f5e-da5a-41c0-a383-3364777664ad</CategoryId> <DepartmentId>da2451b8-9d28-478f-a5e9-daad7f44ac33</DepartmentId> <DivisionId>39f8477c-4c3f-47e9-b49b-bc6969482fd5</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>6e6fea98-97b7-4ac6-9856-b16543e86f67</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": "7d53bdd1-21c1-4f9f-834b-c4ae8e4946bf",
"DetailId": "b97b711e-3c09-4aff-83de-446c5b5f8806"
},
{
"Name": "sample string 1",
"NameAr": "sample string 2",
"UserId": 3,
"Selected": 4,
"MasterId": "7d53bdd1-21c1-4f9f-834b-c4ae8e4946bf",
"DetailId": "b97b711e-3c09-4aff-83de-446c5b5f8806"
}
],
"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":"7d53bdd1-21c1-4f9f-834b-c4ae8e4946bf","DetailId":"b97b711e-3c09-4aff-83de-446c5b5f8806"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"7d53bdd1-21c1-4f9f-834b-c4ae8e4946bf","DetailId":"b97b711e-3c09-4aff-83de-446c5b5f8806"}],"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>b97b711e-3c09-4aff-83de-446c5b5f8806</d2p1:DetailId>
<d2p1:MasterId>7d53bdd1-21c1-4f9f-834b-c4ae8e4946bf</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>b97b711e-3c09-4aff-83de-446c5b5f8806</d2p1:DetailId>
<d2p1:MasterId>7d53bdd1-21c1-4f9f-834b-c4ae8e4946bf</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>