POST api/Task/applicableOwners
Get applicable owners of a task
Request Information
URI Parameters
None.
Body Parameters
ApplicableOwnersBinder| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| TaskId |
For creating task, should set TaskId to be 0. |
integer |
None. |
| SubProjectId |
Indicate which sub project the applicable owners will be got based on |
integer |
None. |
| StatusId |
Indicate which status the applicable owners will be queryed based on |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": 1,
"TaskId": 2,
"SubProjectId": 3,
"StatusId": 4
}
application/xml, text/xml
Sample:
<ApplicableOwnersBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <ProjectId>1</ProjectId> <StatusId>4</StatusId> <SubProjectId>3</SubProjectId> <TaskId>2</TaskId> </ApplicableOwnersBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Get applicable owners of a task
API_Data_IEnumerableOfMemberObject| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
|
| Data | Collection of MemberObject |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
"Data": [
{
"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_ArrayOfMemberObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Data>
<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>
</Data>
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</API_Data_ArrayOfMemberObject>