POST api/projectone/GroupedP1ProjectsByHierarchy
Group p1 projects in a ProjectBase Family based on query option by Project Hierarchy
Request Information
URI Parameters
None.
Body Parameters
P1ProjectsBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectBaseId | integer |
None. |
|
QueryOption |
If Option equals 1, indicate only opened projects are included, If Option equals 2, indicate only archived projects are included, If Option equals 3, indicate both opened and archived projects are included. |
integer |
None. |
ProjectCategory |
If ProjectCategory equals 0, indicate only normal projects are included If ProjectCategory equals 1, indicate only project templates are included If ProjectCategory equals 2, indicate only project rquests are included |
integer |
None. |
Request Formats
application/json, text/json
{ "ProjectBaseId": 1, "QueryOption": 2, "ProjectCategory": 3 }
application/xml, text/xml
<P1ProjectsBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.ProjectOne"> <ProjectBaseId>1</ProjectBaseId> <ProjectCategory>3</ProjectCategory> <QueryOption>2</QueryOption> </P1ProjectsBinder>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Group p1 projects in a ProjectBase Family based on query option by Project Hierarchy
API_Data_GroupedP1ProjectsByHierarchyName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | GroupedP1ProjectsByHierarchy |
None. |
Response Formats
application/json, text/json
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "Nodes": [ { "NodeId": 1, "Name": "sample string 2", "ChildNodes": [], "P1Projects": [ { "PrimaryManagerId": 1, "PrimaryManagerName": "sample string 1", "StatusId": 1, "IfStatusClosed": 1, "StatusName": "sample string 2", "PlanStartDate": "2024-12-21 15:04:37", "PlanFinishDate": "2024-12-21 15:04:37", "ProjectHierarchyId": 1, "ProjectId": 3, "ProjectTypeId": 4, "SpaceId": 5, "SpaceName": "sample string 6", "P1ProjectType": 7 }, { "PrimaryManagerId": 1, "PrimaryManagerName": "sample string 1", "StatusId": 1, "IfStatusClosed": 1, "StatusName": "sample string 2", "PlanStartDate": "2024-12-21 15:04:37", "PlanFinishDate": "2024-12-21 15:04:37", "ProjectHierarchyId": 1, "ProjectId": 3, "ProjectTypeId": 4, "SpaceId": 5, "SpaceName": "sample string 6", "P1ProjectType": 7 } ] }, { "NodeId": 1, "Name": "sample string 2", "ChildNodes": [], "P1Projects": [ { "PrimaryManagerId": 1, "PrimaryManagerName": "sample string 1", "StatusId": 1, "IfStatusClosed": 1, "StatusName": "sample string 2", "PlanStartDate": "2024-12-21 15:04:37", "PlanFinishDate": "2024-12-21 15:04:37", "ProjectHierarchyId": 1, "ProjectId": 3, "ProjectTypeId": 4, "SpaceId": 5, "SpaceName": "sample string 6", "P1ProjectType": 7 }, { "PrimaryManagerId": 1, "PrimaryManagerName": "sample string 1", "StatusId": 1, "IfStatusClosed": 1, "StatusName": "sample string 2", "PlanStartDate": "2024-12-21 15:04:37", "PlanFinishDate": "2024-12-21 15:04:37", "ProjectHierarchyId": 1, "ProjectId": 3, "ProjectTypeId": 4, "SpaceId": 5, "SpaceName": "sample string 6", "P1ProjectType": 7 } ] } ], "P1Projects": [ { "PrimaryManagerId": 1, "PrimaryManagerName": "sample string 1", "StatusId": 1, "IfStatusClosed": 1, "StatusName": "sample string 2", "PlanStartDate": "2024-12-21 15:04:37", "PlanFinishDate": "2024-12-21 15:04:37", "ProjectHierarchyId": 1, "ProjectId": 3, "ProjectTypeId": 4, "SpaceId": 5, "SpaceName": "sample string 6", "P1ProjectType": 7 }, { "PrimaryManagerId": 1, "PrimaryManagerName": "sample string 1", "StatusId": 1, "IfStatusClosed": 1, "StatusName": "sample string 2", "PlanStartDate": "2024-12-21 15:04:37", "PlanFinishDate": "2024-12-21 15:04:37", "ProjectHierarchyId": 1, "ProjectId": 3, "ProjectTypeId": 4, "SpaceId": 5, "SpaceName": "sample string 6", "P1ProjectType": 7 } ], "HasProjects": true } }
application/xml
Sample not available.
text/xml
Sample not available.