POST api/SubProject/Move
Move a subproject to a special position
Request Information
URI Parameters
None.
Body Parameters
SubProjectMoveBinder| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| SubProjectId | integer |
None. |
|
| MoveTo | InsertPosition |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": 1,
"SubProjectId": 2,
"MoveTo": {
"Option": 1,
"RelatedId": 2
}
}
application/xml, text/xml
Sample:
<SubProjectMoveBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
<MoveTo xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.SubProject">
<d2p1:Option>1</d2p1:Option>
<d2p1:RelatedId>2</d2p1:RelatedId>
</MoveTo>
<ProjectId>1</ProjectId>
<SubProjectId>2</SubProjectId>
</SubProjectMoveBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Move a subproject to a special position
ApiReturn| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
}
}
application/xml, text/xml
Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</ApiReturn>