POST api/User/AddUsersToProject

Add users to project

Request Information

URI Parameters

None.

Body Parameters

Collection of ProjectMemberBinder
NameDescriptionTypeAdditional information
projectOption

0: projectValue is projectID; 1: projectValue is projectName

integer

None.

projectValue

projectID or projectName

string

None.

userOption

0: userValue is userID; 1: userValue is loginName; 2: userValue is emailAddress

integer

None.

userValue

userID or loginName or emailAddress

string

None.

accountOption

0: accountValue is accountID; 1: accountValue is accountName

integer

None.

accountValue

accountID or accountName

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "projectOption": 1,
    "projectValue": "sample string 2",
    "userOption": 3,
    "userValue": "sample string 4",
    "accountOption": 5,
    "accountValue": "sample string 6"
  },
  {
    "projectOption": 1,
    "projectValue": "sample string 2",
    "userOption": 3,
    "userValue": "sample string 4",
    "accountOption": 5,
    "accountValue": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProjectMemberBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <ProjectMemberBinder>
    <accountOption>5</accountOption>
    <accountValue>sample string 6</accountValue>
    <projectOption>1</projectOption>
    <projectValue>sample string 2</projectValue>
    <userOption>3</userOption>
    <userValue>sample string 4</userValue>
  </ProjectMemberBinder>
  <ProjectMemberBinder>
    <accountOption>5</accountOption>
    <accountValue>sample string 6</accountValue>
    <projectOption>1</projectOption>
    <projectValue>sample string 2</projectValue>
    <userOption>3</userOption>
    <userValue>sample string 4</userValue>
  </ProjectMemberBinder>
</ArrayOfProjectMemberBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Add users to project

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>