POST api/projectone/applicableSpaces
Get management or development spaces based on a projectBase Id
Request Information
URI Parameters
None.
Body Parameters
P1ApplicableSpacesBinder| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| Category |
Filter spaces by category. 0: Normal, 2:Template, 3:Project Request. |
integer |
None. |
| PSTypeId |
Filter spaces by PSType. If PSTypeId equals 0, all spaces will be returned. It is supported by only PPM projectBase. |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": 1,
"Category": 2,
"PSTypeId": 3
}
application/xml, text/xml
Sample:
<P1ApplicableSpacesBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.ProjectOne"> <Category>2</Category> <PSTypeId>3</PSTypeId> <ProjectId>1</ProjectId> </P1ApplicableSpacesBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get management or development spaces based on a projectBase Id
API_Data_IEnumerableOfSubProjectListItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
|
| Data | Collection of SubProjectListItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
"Data": [
{
"subprojectId": 1,
"subprojectName": "sample string 2"
},
{
"subprojectId": 1,
"subprojectName": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<API_Data_ArrayOfSubProjectListItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Data>
<SubProjectListItem>
<SubProjectId>1</SubProjectId>
<SubProjectName>sample string 2</SubProjectName>
</SubProjectListItem>
<SubProjectListItem>
<SubProjectId>1</SubProjectId>
<SubProjectName>sample string 2</SubProjectName>
</SubProjectListItem>
</Data>
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</API_Data_ArrayOfSubProjectListItem>