POST api/SubProject/initialization
Get the initialization of new subproject
Request Information
URI Parameters
None.
Body Parameters
SubProjectInitializeBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
Position |
Indicate where the subproject will be inserted to |
InsertPosition |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "Position": { "Option": 1, "RelatedId": 2 } }
application/xml, text/xml
Sample:
<SubProjectInitializeBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <Position xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.SubProject"> <d2p1:Option>1</d2p1:Option> <d2p1:RelatedId>2</d2p1:RelatedId> </Position> <ProjectId>1</ProjectId> </SubProjectInitializeBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get the initialization of new subproject
API_Data_IEnumerableOfSubProjectInitializationName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of SubProjectInitialization |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "SubProjectType": 1, "SubProjectTypeName": "sample string 2", "PlanStartDate": "2024-12-21 19:17:51", "PlanFinishDate": "2024-12-21 19:17:51", "TeamMembers": [ { "MemberId": { "Id": 1, "Option": 2 }, "MemberName": "sample string 1" }, { "MemberId": { "Id": 1, "Option": 2 }, "MemberName": "sample string 1" } ] }, { "SubProjectType": 1, "SubProjectTypeName": "sample string 2", "PlanStartDate": "2024-12-21 19:17:51", "PlanFinishDate": "2024-12-21 19:17:51", "TeamMembers": [ { "MemberId": { "Id": 1, "Option": 2 }, "MemberName": "sample string 1" }, { "MemberId": { "Id": 1, "Option": 2 }, "MemberName": "sample string 1" } ] } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfSubProjectInitialization 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.Entities"> <d2p1:SubProjectInitialization> <d2p1:PlanFinishDate>2024-12-21T19:17:51.1657894-08:00</d2p1:PlanFinishDate> <d2p1:PlanStartDate>2024-12-21T19:17:51.1657894-08:00</d2p1:PlanStartDate> <d2p1:SubProjectType>1</d2p1:SubProjectType> <d2p1:SubProjectTypeName>sample string 2</d2p1:SubProjectTypeName> <d2p1:TeamMembers> <MemberObject> <MemberId> <Id>1</Id> <Option>2</Option> </MemberId> <MemberName>sample string 1</MemberName> </MemberObject> <MemberObject> <MemberId> <Id>1</Id> <Option>2</Option> </MemberId> <MemberName>sample string 1</MemberName> </MemberObject> </d2p1:TeamMembers> </d2p1:SubProjectInitialization> <d2p1:SubProjectInitialization> <d2p1:PlanFinishDate>2024-12-21T19:17:51.1657894-08:00</d2p1:PlanFinishDate> <d2p1:PlanStartDate>2024-12-21T19:17:51.1657894-08:00</d2p1:PlanStartDate> <d2p1:SubProjectType>1</d2p1:SubProjectType> <d2p1:SubProjectTypeName>sample string 2</d2p1:SubProjectTypeName> <d2p1:TeamMembers> <MemberObject> <MemberId> <Id>1</Id> <Option>2</Option> </MemberId> <MemberName>sample string 1</MemberName> </MemberObject> <MemberObject> <MemberId> <Id>1</Id> <Option>2</Option> </MemberId> <MemberName>sample string 1</MemberName> </MemberObject> </d2p1:TeamMembers> </d2p1:SubProjectInitialization> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfSubProjectInitialization>