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": "a65e5cde-d249-44d8-85fb-c823b13e5f2f",
"AssetId": "cf0a6fae-7f36-44e0-b7e1-e596b3015a3e",
"BuildingId": "c7f4a5e4-2a33-4ed9-b728-a6c58a1f4533",
"SubBuildingId": "e152af83-3f98-4ecd-9799-a21feff819f5",
"CategoryId": "f5d9eb76-2e75-43d2-98fe-bb9feece997a",
"DepartmentId": "19bb148f-6a50-441d-b7ad-1f31df448178",
"GetDepartmentAssign": true
}
text/html, multipart/form-data
Sample:
{"DivisionId":"a65e5cde-d249-44d8-85fb-c823b13e5f2f","AssetId":"cf0a6fae-7f36-44e0-b7e1-e596b3015a3e","BuildingId":"c7f4a5e4-2a33-4ed9-b728-a6c58a1f4533","SubBuildingId":"e152af83-3f98-4ecd-9799-a21feff819f5","CategoryId":"f5d9eb76-2e75-43d2-98fe-bb9feece997a","DepartmentId":"19bb148f-6a50-441d-b7ad-1f31df448178","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>cf0a6fae-7f36-44e0-b7e1-e596b3015a3e</AssetId> <BuildingId>c7f4a5e4-2a33-4ed9-b728-a6c58a1f4533</BuildingId> <CategoryId>f5d9eb76-2e75-43d2-98fe-bb9feece997a</CategoryId> <DepartmentId>19bb148f-6a50-441d-b7ad-1f31df448178</DepartmentId> <DivisionId>a65e5cde-d249-44d8-85fb-c823b13e5f2f</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>e152af83-3f98-4ecd-9799-a21feff819f5</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": "44b89beb-2471-4b77-8b2f-80092a0a233d",
"DetailId": "a0ef84cb-e0ca-43a0-b1b6-d8a0968e783d"
},
{
"Name": "sample string 1",
"NameAr": "sample string 2",
"UserId": 3,
"Selected": 4,
"MasterId": "44b89beb-2471-4b77-8b2f-80092a0a233d",
"DetailId": "a0ef84cb-e0ca-43a0-b1b6-d8a0968e783d"
}
],
"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":"44b89beb-2471-4b77-8b2f-80092a0a233d","DetailId":"a0ef84cb-e0ca-43a0-b1b6-d8a0968e783d"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"44b89beb-2471-4b77-8b2f-80092a0a233d","DetailId":"a0ef84cb-e0ca-43a0-b1b6-d8a0968e783d"}],"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>a0ef84cb-e0ca-43a0-b1b6-d8a0968e783d</d2p1:DetailId>
<d2p1:MasterId>44b89beb-2471-4b77-8b2f-80092a0a233d</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>a0ef84cb-e0ca-43a0-b1b6-d8a0968e783d</d2p1:DetailId>
<d2p1:MasterId>44b89beb-2471-4b77-8b2f-80092a0a233d</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>