POST api/projectone/import
Import standalone space.
Request Information
URI Parameters
None.
Body Parameters
P1ImportBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
Spaces | Collection of P1SpaceImportInfo |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "Spaces": [ { "SpaceId": 1, "IfImportAsDefect": true, "PPMProjectId": 3, "PPMSpaceId": 4, "NewP1ProjectName": "sample string 5" }, { "SpaceId": 1, "IfImportAsDefect": true, "PPMProjectId": 3, "PPMSpaceId": 4, "NewP1ProjectName": "sample string 5" } ] }
application/xml, text/xml
Sample:
<P1ImportBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.ProjectOne"> <ProjectId>1</ProjectId> <Spaces> <P1SpaceImportInfo> <IfImportAsDefect>true</IfImportAsDefect> <NewP1ProjectName>sample string 5</NewP1ProjectName> <PPMProjectId>3</PPMProjectId> <PPMSpaceId>4</PPMSpaceId> <SpaceId>1</SpaceId> </P1SpaceImportInfo> <P1SpaceImportInfo> <IfImportAsDefect>true</IfImportAsDefect> <NewP1ProjectName>sample string 5</NewP1ProjectName> <PPMProjectId>3</PPMProjectId> <PPMSpaceId>4</PPMSpaceId> <SpaceId>1</SpaceId> </P1SpaceImportInfo> </Spaces> </P1ImportBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Import standalone space.
API_Data_ListOfP1ModuleImportResultName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of P1ModuleImportResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "ProjectId": 1, "SpaceId": 2, "SpaceName": "sample string 3", "P1ProjectName": "sample string 4", "ErrorId": 1, "Success": true, "Reason": "sample string 6" }, { "ProjectId": 1, "SpaceId": 2, "SpaceName": "sample string 3", "P1ProjectName": "sample string 4", "ErrorId": 1, "Success": true, "Reason": "sample string 6" } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfP1ModuleImportResult 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:P1ModuleImportResult> <d2p1:Reason>sample string 6</d2p1:Reason> <d2p1:Success>true</d2p1:Success> <d2p1:ErrorId>1</d2p1:ErrorId> <d2p1:P1ProjectName>sample string 4</d2p1:P1ProjectName> <d2p1:ProjectId>1</d2p1:ProjectId> <d2p1:SpaceId>2</d2p1:SpaceId> <d2p1:SpaceName>sample string 3</d2p1:SpaceName> </d2p1:P1ModuleImportResult> <d2p1:P1ModuleImportResult> <d2p1:Reason>sample string 6</d2p1:Reason> <d2p1:Success>true</d2p1:Success> <d2p1:ErrorId>1</d2p1:ErrorId> <d2p1:P1ProjectName>sample string 4</d2p1:P1ProjectName> <d2p1:ProjectId>1</d2p1:ProjectId> <d2p1:SpaceId>2</d2p1:SpaceId> <d2p1:SpaceName>sample string 3</d2p1:SpaceName> </d2p1:P1ModuleImportResult> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfP1ModuleImportResult>