POST api/SubProject/saveMembers

Save subproject members

Request Information

URI Parameters

None.

Body Parameters

SaveSubProjectMembersBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

SubProjectId

integer

None.

Members

Collection of MemberIdObject

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "SubProjectId": 2,
  "Members": [
    {
      "Id": 1,
      "Option": 2
    },
    {
      "Id": 1,
      "Option": 2
    }
  ]
}

application/xml, text/xml

Sample:
<SaveSubProjectMembersBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <Members xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
    <d2p1:MemberIdObject>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Option>2</d2p1:Option>
    </d2p1:MemberIdObject>
    <d2p1:MemberIdObject>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Option>2</d2p1:Option>
    </d2p1:MemberIdObject>
  </Members>
  <ProjectId>1</ProjectId>
  <SubProjectId>2</SubProjectId>
</SaveSubProjectMembersBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Save subproject members

ApiReturn
NameDescriptionTypeAdditional 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>