POST Api/Configuration/GetDepartmentsAdmins
Request Information
URI Parameters
None.
Body Parameters
DAdminFiltersName | 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": "156b06af-f702-4fe8-83f1-00f8ccecc11e", "AssetId": "c750532e-3acc-43f2-b95d-9b8ed5cf0e3a", "BuildingId": "b6be29f9-1cd3-42a5-9187-ffc49815dda6", "SubBuildingId": "96baf052-76d9-4dce-967a-71caafceb747", "CategoryId": "824f922c-169b-43af-83e6-3ce4212aecde", "DepartmentId": "bf802398-e52b-49f4-ad19-2f5b28e72e90", "GetDepartmentAssign": true }
text/html, multipart/form-data
Sample:
{"DivisionId":"156b06af-f702-4fe8-83f1-00f8ccecc11e","AssetId":"c750532e-3acc-43f2-b95d-9b8ed5cf0e3a","BuildingId":"b6be29f9-1cd3-42a5-9187-ffc49815dda6","SubBuildingId":"96baf052-76d9-4dce-967a-71caafceb747","CategoryId":"824f922c-169b-43af-83e6-3ce4212aecde","DepartmentId":"bf802398-e52b-49f4-ad19-2f5b28e72e90","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>c750532e-3acc-43f2-b95d-9b8ed5cf0e3a</AssetId> <BuildingId>b6be29f9-1cd3-42a5-9187-ffc49815dda6</BuildingId> <CategoryId>824f922c-169b-43af-83e6-3ce4212aecde</CategoryId> <DepartmentId>bf802398-e52b-49f4-ad19-2f5b28e72e90</DepartmentId> <DivisionId>156b06af-f702-4fe8-83f1-00f8ccecc11e</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>96baf052-76d9-4dce-967a-71caafceb747</SubBuildingId> </DAdminFilters>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
GlobalResponseOfListOfDadminsDTOName | 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": "1d4ef2f3-68c8-4522-b400-45676bdb0ea8", "DetailId": "e2cf8341-f4e0-41ce-a104-e70048da9039" }, { "Name": "sample string 1", "NameAr": "sample string 2", "UserId": 3, "Selected": 4, "MasterId": "1d4ef2f3-68c8-4522-b400-45676bdb0ea8", "DetailId": "e2cf8341-f4e0-41ce-a104-e70048da9039" } ], "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":"1d4ef2f3-68c8-4522-b400-45676bdb0ea8","DetailId":"e2cf8341-f4e0-41ce-a104-e70048da9039"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"1d4ef2f3-68c8-4522-b400-45676bdb0ea8","DetailId":"e2cf8341-f4e0-41ce-a104-e70048da9039"}],"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>e2cf8341-f4e0-41ce-a104-e70048da9039</d2p1:DetailId> <d2p1:MasterId>1d4ef2f3-68c8-4522-b400-45676bdb0ea8</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>e2cf8341-f4e0-41ce-a104-e70048da9039</d2p1:DetailId> <d2p1:MasterId>1d4ef2f3-68c8-4522-b400-45676bdb0ea8</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>