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": "fcbdcda1-1534-497d-8a91-c90e4ce1d06a",
"AssetId": "572ffed9-d0f0-4d44-9c4e-b323d21775f2",
"BuildingId": "755f2b0e-bee9-4a61-af90-c6d7efc0c4c7",
"SubBuildingId": "c207fca7-a762-4c33-9663-855b5e73599a",
"CategoryId": "f8c658bd-2d77-4b64-bbc2-8f4be0d29f99",
"DepartmentId": "097eab10-a7dc-41db-b9df-e9a09dda5382",
"GetDepartmentAssign": true
}
text/html, multipart/form-data
Sample:
{"DivisionId":"fcbdcda1-1534-497d-8a91-c90e4ce1d06a","AssetId":"572ffed9-d0f0-4d44-9c4e-b323d21775f2","BuildingId":"755f2b0e-bee9-4a61-af90-c6d7efc0c4c7","SubBuildingId":"c207fca7-a762-4c33-9663-855b5e73599a","CategoryId":"f8c658bd-2d77-4b64-bbc2-8f4be0d29f99","DepartmentId":"097eab10-a7dc-41db-b9df-e9a09dda5382","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>572ffed9-d0f0-4d44-9c4e-b323d21775f2</AssetId> <BuildingId>755f2b0e-bee9-4a61-af90-c6d7efc0c4c7</BuildingId> <CategoryId>f8c658bd-2d77-4b64-bbc2-8f4be0d29f99</CategoryId> <DepartmentId>097eab10-a7dc-41db-b9df-e9a09dda5382</DepartmentId> <DivisionId>fcbdcda1-1534-497d-8a91-c90e4ce1d06a</DivisionId> <GetDepartmentAssign>true</GetDepartmentAssign> <SubBuildingId>c207fca7-a762-4c33-9663-855b5e73599a</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": "e7882b2a-b675-4607-afd4-e08f9b0a4d3b",
"DetailId": "75104f27-d494-465c-b9d3-099d312ee797"
},
{
"Name": "sample string 1",
"NameAr": "sample string 2",
"UserId": 3,
"Selected": 4,
"MasterId": "e7882b2a-b675-4607-afd4-e08f9b0a4d3b",
"DetailId": "75104f27-d494-465c-b9d3-099d312ee797"
}
],
"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":"e7882b2a-b675-4607-afd4-e08f9b0a4d3b","DetailId":"75104f27-d494-465c-b9d3-099d312ee797"},{"Name":"sample string 1","NameAr":"sample string 2","UserId":3,"Selected":4,"MasterId":"e7882b2a-b675-4607-afd4-e08f9b0a4d3b","DetailId":"75104f27-d494-465c-b9d3-099d312ee797"}],"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>75104f27-d494-465c-b9d3-099d312ee797</d2p1:DetailId>
<d2p1:MasterId>e7882b2a-b675-4607-afd4-e08f9b0a4d3b</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>75104f27-d494-465c-b9d3-099d312ee797</d2p1:DetailId>
<d2p1:MasterId>e7882b2a-b675-4607-afd4-e08f9b0a4d3b</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>