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": "e5b74ea2-d9ee-4829-b9ce-9eadad25050e",
"AssetId": "96809b95-7817-45c6-a883-5bd650ea83e5",
"BuildingId": "abca73b2-3809-49cb-a2f0-b56283778a4e",
"SubBuildingId": "ad00abb0-8f5d-4fa7-a584-bebac7dd8c70",
"CategoryId": "f4e09988-3d1c-4049-b56c-a07393ca2927",
"DepartmentId": "517361de-9995-43dd-976b-fc561d1290bb",
"GetDepartmentAssign": true
}
text/html, multipart/form-data
Sample:
{"DivisionId":"e5b74ea2-d9ee-4829-b9ce-9eadad25050e","AssetId":"96809b95-7817-45c6-a883-5bd650ea83e5","BuildingId":"abca73b2-3809-49cb-a2f0-b56283778a4e","SubBuildingId":"ad00abb0-8f5d-4fa7-a584-bebac7dd8c70","CategoryId":"f4e09988-3d1c-4049-b56c-a07393ca2927","DepartmentId":"517361de-9995-43dd-976b-fc561d1290bb","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>96809b95-7817-45c6-a883-5bd650ea83e5</AssetId> <BuildingId>abca73b2-3809-49cb-a2f0-b56283778a4e</BuildingId> <CategoryId>f4e09988-3d1c-4049-b56c-a07393ca2927</CategoryId> <DepartmentId>517361de-9995-43dd-976b-fc561d1290bb</DepartmentId> <DivisionId>e5b74ea2-d9ee-4829-b9ce-9eadad25050e</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>ad00abb0-8f5d-4fa7-a584-bebac7dd8c70</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": "6681f689-9052-4c6b-af24-c2c2be1762ea",
"DetailId": "1e80e03c-1cd0-4c22-aa13-d0b01b71e93d"
},
{
"Name": "sample string 1",
"NameAr": "sample string 2",
"UserId": 3,
"Selected": 4,
"MasterId": "6681f689-9052-4c6b-af24-c2c2be1762ea",
"DetailId": "1e80e03c-1cd0-4c22-aa13-d0b01b71e93d"
}
],
"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":"6681f689-9052-4c6b-af24-c2c2be1762ea","DetailId":"1e80e03c-1cd0-4c22-aa13-d0b01b71e93d"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"6681f689-9052-4c6b-af24-c2c2be1762ea","DetailId":"1e80e03c-1cd0-4c22-aa13-d0b01b71e93d"}],"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>1e80e03c-1cd0-4c22-aa13-d0b01b71e93d</d2p1:DetailId>
<d2p1:MasterId>6681f689-9052-4c6b-af24-c2c2be1762ea</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>1e80e03c-1cd0-4c22-aa13-d0b01b71e93d</d2p1:DetailId>
<d2p1:MasterId>6681f689-9052-4c6b-af24-c2c2be1762ea</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>