POST api/projectone/createP1Project
Create project with various modules (e.g Management, Development, Requirement, Knowledge, Test Run, Test Liberary, Defect module)
Request Information
URI Parameters
None.
Body Parameters
P1ProjectCreateBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectRequestIssueId |
If create project by a ProjectRequest Issue, please set ProjectRequestIssueId to be the issue id, otherwise please set ProjectRequestIssueId to 0. |
integer |
None. |
P1ProjectType |
0: Agile Development, 1: Simple Task Tracking |
integer |
None. |
DisableManagementModule | boolean |
None. |
|
GeneralInfo | P1ProjectGeneralInfo |
None. |
|
DurationOption | P1ProjectDurationOption |
None. |
|
Modules | P1DataOfP1ModuleCreation |
None. |
|
ResourceCreation | P1ResourceCreation |
None. |
|
CreateOptions | P1ProjectCreateOptions |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectRequestIssueId": 1, "P1ProjectType": 2, "DisableManagementModule": true, "GeneralInfo": { "ProjectCategory": 1, "PSTypeId": 1, "ProjectHierarchyId": 1, "Title": "sample string 2", "Description": "sample string 3", "PlanStartDate": "2024-12-21 16:23:18", "PlanFinishDate": "2024-12-21 16:23:18", "ProjectManager": 1, "StatusId": 1 }, "DurationOption": { "BasedOnPSMilestone": true, "Milestones": [ { "MilestoneId": 1, "StartDate": "2024-12-21 16:23:18", "FinishDate": "2024-12-21 16:23:18" }, { "MilestoneId": 1, "StartDate": "2024-12-21 16:23:18", "FinishDate": "2024-12-21 16:23:18" } ] }, "Modules": { "Management": { "ProjectBaseId": 1, "PrimarySpaceId": 2, "ReferenceSpaces": [ 1, 2 ], "PrimarySpaceCreation": { "CopyFoldersFromExistingOption": 1, "CopyFoldersFromSpaceId": 2, "EnableCopyResource": true, "EnableCopyTasks": true, "EnableInitMemberFromTaskOwner": true, "SupportBacklog": true, "Release": "sample string 7" } }, "Development": { "ProjectBaseId": 1, "PrimarySpaceId": 2, "ReferenceSpaces": [ 1, 2 ], "PrimarySpaceCreation": { "CopyFoldersFromExistingOption": 1, "CopyFoldersFromSpaceId": 2, "EnableCopyResource": true, "EnableCopyTasks": true, "EnableInitMemberFromTaskOwner": true, "SupportBacklog": true, "Release": "sample string 7" } }, "Requirement": { "ProjectBaseId": 1, "PrimarySpaceId": 2, "ReferenceSpaces": [ 1, 2 ], "PrimarySpaceCreation": { "CopyFoldersFromExistingOption": 1, "CopyFoldersFromSpaceId": 2, "EnableCopyResource": true, "EnableCopyTasks": true, "EnableInitMemberFromTaskOwner": true, "SupportBacklog": true, "Release": "sample string 7" } }, "Knowledge": { "ProjectBaseId": 1, "PrimarySpaceId": 2, "ReferenceSpaces": [ 1, 2 ], "PrimarySpaceCreation": { "CopyFoldersFromExistingOption": 1, "CopyFoldersFromSpaceId": 2, "EnableCopyResource": true, "EnableCopyTasks": true, "EnableInitMemberFromTaskOwner": true, "SupportBacklog": true, "Release": "sample string 7" } }, "TestRun": { "ProjectBaseId": 1, "PrimarySpaceId": 2, "ReferenceSpaces": [ 1, 2 ], "PrimarySpaceCreation": { "CopyFoldersFromExistingOption": 1, "CopyFoldersFromSpaceId": 2, "EnableCopyResource": true, "EnableCopyTasks": true, "EnableInitMemberFromTaskOwner": true, "SupportBacklog": true, "Release": "sample string 7" } }, "TestLiberary": { "ProjectBaseId": 1, "PrimarySpaceId": 2, "ReferenceSpaces": [ 1, 2 ], "PrimarySpaceCreation": { "CopyFoldersFromExistingOption": 1, "CopyFoldersFromSpaceId": 2, "EnableCopyResource": true, "EnableCopyTasks": true, "EnableInitMemberFromTaskOwner": true, "SupportBacklog": true, "Release": "sample string 7" } }, "Defect": { "ProjectBaseId": 1, "PrimarySpaceId": 2, "ReferenceSpaces": [ 1, 2 ], "PrimarySpaceCreation": { "CopyFoldersFromExistingOption": 1, "CopyFoldersFromSpaceId": 2, "EnableCopyResource": true, "EnableCopyTasks": true, "EnableInitMemberFromTaskOwner": true, "SupportBacklog": true, "Release": "sample string 7" } } }, "ResourceCreation": { "EnableCopyFromExistingP1Project": true, "CopyFromP1ProjectId": 2, "Resources": [ { "MemberId": 1, "IsP1Admin": true, "AccountTypes": { "Management": 1, "Development": 1, "Requirement": 1, "Knowledge": 1, "TestRun": 1, "TestLiberary": 1, "Defect": 1 } }, { "MemberId": 1, "IsP1Admin": true, "AccountTypes": { "Management": 1, "Development": 1, "Requirement": 1, "Knowledge": 1, "TestRun": 1, "TestLiberary": 1, "Defect": 1 } } ] }, "CreateOptions": { "Requirement": { "SupportChangeAndApproval": true } } }
application/xml, text/xml
Sample:
<P1ProjectCreateBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.ProjectOne"> <CreateOptions> <Requirement> <SupportChangeAndApproval>true</SupportChangeAndApproval> </Requirement> </CreateOptions> <DisableManagementModule>true</DisableManagementModule> <DurationOption> <BasedOnPSMilestone>true</BasedOnPSMilestone> <Milestones xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <d3p1:PSMilestoneValueBinder> <d3p1:FinishDate>2024-12-21T16:23:18.9496117-08:00</d3p1:FinishDate> <d3p1:MilestoneId>1</d3p1:MilestoneId> <d3p1:StartDate>2024-12-21T16:23:18.9496117-08:00</d3p1:StartDate> </d3p1:PSMilestoneValueBinder> <d3p1:PSMilestoneValueBinder> <d3p1:FinishDate>2024-12-21T16:23:18.9496117-08:00</d3p1:FinishDate> <d3p1:MilestoneId>1</d3p1:MilestoneId> <d3p1:StartDate>2024-12-21T16:23:18.9496117-08:00</d3p1:StartDate> </d3p1:PSMilestoneValueBinder> </Milestones> </DurationOption> <GeneralInfo> <Description>sample string 3</Description> <PSTypeId>1</PSTypeId> <PlanFinishDate>2024-12-21T16:23:18.9496117-08:00</PlanFinishDate> <PlanStartDate>2024-12-21T16:23:18.9496117-08:00</PlanStartDate> <ProjectCategory>1</ProjectCategory> <ProjectHierarchyId>1</ProjectHierarchyId> <ProjectManager>1</ProjectManager> <StatusId>1</StatusId> <Title>sample string 2</Title> </GeneralInfo> <Modules> <Defect> <PrimarySpaceCreation> <CopyFoldersFromExistingOption>1</CopyFoldersFromExistingOption> <CopyFoldersFromSpaceId>2</CopyFoldersFromSpaceId> <EnableCopyResource>true</EnableCopyResource> <EnableCopyTasks>true</EnableCopyTasks> <EnableInitMemberFromTaskOwner>true</EnableInitMemberFromTaskOwner> <Release>sample string 7</Release> <SupportBacklog>true</SupportBacklog> </PrimarySpaceCreation> <PrimarySpaceId>2</PrimarySpaceId> <ProjectBaseId>1</ProjectBaseId> <ReferenceSpaces xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </ReferenceSpaces> </Defect> <Development> <PrimarySpaceCreation> <CopyFoldersFromExistingOption>1</CopyFoldersFromExistingOption> <CopyFoldersFromSpaceId>2</CopyFoldersFromSpaceId> <EnableCopyResource>true</EnableCopyResource> <EnableCopyTasks>true</EnableCopyTasks> <EnableInitMemberFromTaskOwner>true</EnableInitMemberFromTaskOwner> <Release>sample string 7</Release> <SupportBacklog>true</SupportBacklog> </PrimarySpaceCreation> <PrimarySpaceId>2</PrimarySpaceId> <ProjectBaseId>1</ProjectBaseId> <ReferenceSpaces xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </ReferenceSpaces> </Development> <Knowledge> <PrimarySpaceCreation> <CopyFoldersFromExistingOption>1</CopyFoldersFromExistingOption> <CopyFoldersFromSpaceId>2</CopyFoldersFromSpaceId> <EnableCopyResource>true</EnableCopyResource> <EnableCopyTasks>true</EnableCopyTasks> <EnableInitMemberFromTaskOwner>true</EnableInitMemberFromTaskOwner> <Release>sample string 7</Release> <SupportBacklog>true</SupportBacklog> </PrimarySpaceCreation> <PrimarySpaceId>2</PrimarySpaceId> <ProjectBaseId>1</ProjectBaseId> <ReferenceSpaces xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </ReferenceSpaces> </Knowledge> <Management> <PrimarySpaceCreation> <CopyFoldersFromExistingOption>1</CopyFoldersFromExistingOption> <CopyFoldersFromSpaceId>2</CopyFoldersFromSpaceId> <EnableCopyResource>true</EnableCopyResource> <EnableCopyTasks>true</EnableCopyTasks> <EnableInitMemberFromTaskOwner>true</EnableInitMemberFromTaskOwner> <Release>sample string 7</Release> <SupportBacklog>true</SupportBacklog> </PrimarySpaceCreation> <PrimarySpaceId>2</PrimarySpaceId> <ProjectBaseId>1</ProjectBaseId> <ReferenceSpaces xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </ReferenceSpaces> </Management> <Requirement> <PrimarySpaceCreation> <CopyFoldersFromExistingOption>1</CopyFoldersFromExistingOption> <CopyFoldersFromSpaceId>2</CopyFoldersFromSpaceId> <EnableCopyResource>true</EnableCopyResource> <EnableCopyTasks>true</EnableCopyTasks> <EnableInitMemberFromTaskOwner>true</EnableInitMemberFromTaskOwner> <Release>sample string 7</Release> <SupportBacklog>true</SupportBacklog> </PrimarySpaceCreation> <PrimarySpaceId>2</PrimarySpaceId> <ProjectBaseId>1</ProjectBaseId> <ReferenceSpaces xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </ReferenceSpaces> </Requirement> <TestLiberary> <PrimarySpaceCreation> <CopyFoldersFromExistingOption>1</CopyFoldersFromExistingOption> <CopyFoldersFromSpaceId>2</CopyFoldersFromSpaceId> <EnableCopyResource>true</EnableCopyResource> <EnableCopyTasks>true</EnableCopyTasks> <EnableInitMemberFromTaskOwner>true</EnableInitMemberFromTaskOwner> <Release>sample string 7</Release> <SupportBacklog>true</SupportBacklog> </PrimarySpaceCreation> <PrimarySpaceId>2</PrimarySpaceId> <ProjectBaseId>1</ProjectBaseId> <ReferenceSpaces xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </ReferenceSpaces> </TestLiberary> <TestRun> <PrimarySpaceCreation> <CopyFoldersFromExistingOption>1</CopyFoldersFromExistingOption> <CopyFoldersFromSpaceId>2</CopyFoldersFromSpaceId> <EnableCopyResource>true</EnableCopyResource> <EnableCopyTasks>true</EnableCopyTasks> <EnableInitMemberFromTaskOwner>true</EnableInitMemberFromTaskOwner> <Release>sample string 7</Release> <SupportBacklog>true</SupportBacklog> </PrimarySpaceCreation> <PrimarySpaceId>2</PrimarySpaceId> <ProjectBaseId>1</ProjectBaseId> <ReferenceSpaces xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </ReferenceSpaces> </TestRun> </Modules> <P1ProjectType>2</P1ProjectType> <ProjectRequestIssueId>1</ProjectRequestIssueId> <ResourceCreation> <CopyFromP1ProjectId>2</CopyFromP1ProjectId> <EnableCopyFromExistingP1Project>true</EnableCopyFromExistingP1Project> <Resources> <P1MemberObject> <AccountTypes> <Defect>1</Defect> <Development>1</Development> <Knowledge>1</Knowledge> <Management>1</Management> <Requirement>1</Requirement> <TestLiberary>1</TestLiberary> <TestRun>1</TestRun> </AccountTypes> <IsP1Admin>true</IsP1Admin> <MemberId>1</MemberId> </P1MemberObject> <P1MemberObject> <AccountTypes> <Defect>1</Defect> <Development>1</Development> <Knowledge>1</Knowledge> <Management>1</Management> <Requirement>1</Requirement> <TestLiberary>1</TestLiberary> <TestRun>1</TestRun> </AccountTypes> <IsP1Admin>true</IsP1Admin> <MemberId>1</MemberId> </P1MemberObject> </Resources> </ResourceCreation> </P1ProjectCreateBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Create project with various modules (e.g Management, Development, Requirement, Knowledge, Test Run, Test Liberary, Defect module)
API_Data_P1DataOfP1ModuleCreateResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | P1DataOfP1ModuleCreateResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": { "Management": { "ProjectId": 1, "SpaceId": 2, "Success": true, "Reason": "sample string 4" }, "Development": { "ProjectId": 1, "SpaceId": 2, "Success": true, "Reason": "sample string 4" }, "Requirement": { "ProjectId": 1, "SpaceId": 2, "Success": true, "Reason": "sample string 4" }, "Knowledge": { "ProjectId": 1, "SpaceId": 2, "Success": true, "Reason": "sample string 4" }, "TestRun": { "ProjectId": 1, "SpaceId": 2, "Success": true, "Reason": "sample string 4" }, "TestLiberary": { "ProjectId": 1, "SpaceId": 2, "Success": true, "Reason": "sample string 4" }, "Defect": { "ProjectId": 1, "SpaceId": 2, "Success": true, "Reason": "sample string 4" } } }
application/xml, text/xml
Sample:
<API_Data_P1DataOfP1ModuleCreateResultbs1L93vz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.ProjectOne"> <d2p1:Defect xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d3p1:Reason>sample string 4</d3p1:Reason> <d3p1:Success>true</d3p1:Success> <d3p1:ProjectId>1</d3p1:ProjectId> <d3p1:SpaceId>2</d3p1:SpaceId> </d2p1:Defect> <d2p1:Development xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d3p1:Reason>sample string 4</d3p1:Reason> <d3p1:Success>true</d3p1:Success> <d3p1:ProjectId>1</d3p1:ProjectId> <d3p1:SpaceId>2</d3p1:SpaceId> </d2p1:Development> <d2p1:Knowledge xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d3p1:Reason>sample string 4</d3p1:Reason> <d3p1:Success>true</d3p1:Success> <d3p1:ProjectId>1</d3p1:ProjectId> <d3p1:SpaceId>2</d3p1:SpaceId> </d2p1:Knowledge> <d2p1:Management xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d3p1:Reason>sample string 4</d3p1:Reason> <d3p1:Success>true</d3p1:Success> <d3p1:ProjectId>1</d3p1:ProjectId> <d3p1:SpaceId>2</d3p1:SpaceId> </d2p1:Management> <d2p1:Requirement xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d3p1:Reason>sample string 4</d3p1:Reason> <d3p1:Success>true</d3p1:Success> <d3p1:ProjectId>1</d3p1:ProjectId> <d3p1:SpaceId>2</d3p1:SpaceId> </d2p1:Requirement> <d2p1:TestLiberary xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d3p1:Reason>sample string 4</d3p1:Reason> <d3p1:Success>true</d3p1:Success> <d3p1:ProjectId>1</d3p1:ProjectId> <d3p1:SpaceId>2</d3p1:SpaceId> </d2p1:TestLiberary> <d2p1:TestRun xmlns:d3p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <d3p1:Reason>sample string 4</d3p1:Reason> <d3p1:Success>true</d3p1:Success> <d3p1:ProjectId>1</d3p1:ProjectId> <d3p1:SpaceId>2</d3p1:SpaceId> </d2p1:TestRun> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_P1DataOfP1ModuleCreateResultbs1L93vz>