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": "adbacd7d-4a21-4bdb-a47b-d7a5aa62fc25", "AssetId": "3a93ec52-696c-4a03-9297-f58999bfa9e0", "BuildingId": "197dd9a4-a366-4e38-bb0b-b44acf1631df", "SubBuildingId": "93fc204a-fffc-4eaf-aed5-6d81023d7543", "CategoryId": "db33297d-ebe4-447b-8400-03d25d7d05b0", "DepartmentId": "c188c574-54ce-4d0d-a8b6-223403d2ef4a", "GetDepartmentAssign": true }
text/html, multipart/form-data
Sample:
{"DivisionId":"adbacd7d-4a21-4bdb-a47b-d7a5aa62fc25","AssetId":"3a93ec52-696c-4a03-9297-f58999bfa9e0","BuildingId":"197dd9a4-a366-4e38-bb0b-b44acf1631df","SubBuildingId":"93fc204a-fffc-4eaf-aed5-6d81023d7543","CategoryId":"db33297d-ebe4-447b-8400-03d25d7d05b0","DepartmentId":"c188c574-54ce-4d0d-a8b6-223403d2ef4a","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>3a93ec52-696c-4a03-9297-f58999bfa9e0</AssetId> <BuildingId>197dd9a4-a366-4e38-bb0b-b44acf1631df</BuildingId> <CategoryId>db33297d-ebe4-447b-8400-03d25d7d05b0</CategoryId> <DepartmentId>c188c574-54ce-4d0d-a8b6-223403d2ef4a</DepartmentId> <DivisionId>adbacd7d-4a21-4bdb-a47b-d7a5aa62fc25</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>93fc204a-fffc-4eaf-aed5-6d81023d7543</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": "30d2468d-e475-438d-96d5-3d6045914a46", "DetailId": "a2c71f10-2249-4294-8dca-ccfd2f4b0ca8" }, { "Name": "sample string 1", "NameAr": "sample string 2", "UserId": 3, "Selected": 4, "MasterId": "30d2468d-e475-438d-96d5-3d6045914a46", "DetailId": "a2c71f10-2249-4294-8dca-ccfd2f4b0ca8" } ], "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":"30d2468d-e475-438d-96d5-3d6045914a46","DetailId":"a2c71f10-2249-4294-8dca-ccfd2f4b0ca8"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"30d2468d-e475-438d-96d5-3d6045914a46","DetailId":"a2c71f10-2249-4294-8dca-ccfd2f4b0ca8"}],"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>a2c71f10-2249-4294-8dca-ccfd2f4b0ca8</d2p1:DetailId> <d2p1:MasterId>30d2468d-e475-438d-96d5-3d6045914a46</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>a2c71f10-2249-4294-8dca-ccfd2f4b0ca8</d2p1:DetailId> <d2p1:MasterId>30d2468d-e475-438d-96d5-3d6045914a46</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>