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": "8428ddfb-c941-4773-b717-c5eb00ca632a",
"AssetId": "994c7151-b962-46fd-857e-4b66f64f9ad4",
"BuildingId": "68203c27-1bbf-4e24-bbb9-99f01320a78f",
"SubBuildingId": "07085a95-ee78-4c8a-abc4-14fd1a0e9e3a",
"CategoryId": "9ae5025e-45a8-4c0a-aa1e-bb38d5b22f97",
"DepartmentId": "56681f45-d769-4ec5-8a5d-413520acf057",
"GetDepartmentAssign": true
}
text/html, multipart/form-data
Sample:
{"DivisionId":"8428ddfb-c941-4773-b717-c5eb00ca632a","AssetId":"994c7151-b962-46fd-857e-4b66f64f9ad4","BuildingId":"68203c27-1bbf-4e24-bbb9-99f01320a78f","SubBuildingId":"07085a95-ee78-4c8a-abc4-14fd1a0e9e3a","CategoryId":"9ae5025e-45a8-4c0a-aa1e-bb38d5b22f97","DepartmentId":"56681f45-d769-4ec5-8a5d-413520acf057","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>994c7151-b962-46fd-857e-4b66f64f9ad4</AssetId> <BuildingId>68203c27-1bbf-4e24-bbb9-99f01320a78f</BuildingId> <CategoryId>9ae5025e-45a8-4c0a-aa1e-bb38d5b22f97</CategoryId> <DepartmentId>56681f45-d769-4ec5-8a5d-413520acf057</DepartmentId> <DivisionId>8428ddfb-c941-4773-b717-c5eb00ca632a</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>07085a95-ee78-4c8a-abc4-14fd1a0e9e3a</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": "92bf804c-4d72-4e68-baaf-73d1564a68de",
"DetailId": "2e301613-2018-46f2-80db-58e595ff4feb"
},
{
"Name": "sample string 1",
"NameAr": "sample string 2",
"UserId": 3,
"Selected": 4,
"MasterId": "92bf804c-4d72-4e68-baaf-73d1564a68de",
"DetailId": "2e301613-2018-46f2-80db-58e595ff4feb"
}
],
"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":"92bf804c-4d72-4e68-baaf-73d1564a68de","DetailId":"2e301613-2018-46f2-80db-58e595ff4feb"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"92bf804c-4d72-4e68-baaf-73d1564a68de","DetailId":"2e301613-2018-46f2-80db-58e595ff4feb"}],"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>2e301613-2018-46f2-80db-58e595ff4feb</d2p1:DetailId>
<d2p1:MasterId>92bf804c-4d72-4e68-baaf-73d1564a68de</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>2e301613-2018-46f2-80db-58e595ff4feb</d2p1:DetailId>
<d2p1:MasterId>92bf804c-4d72-4e68-baaf-73d1564a68de</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>