POST api/User/AddUserToProject?projectOption={projectOption}&projectValue={projectValue}&userOption={userOption}&userValue={userValue}&accountOption={accountOption}&accountValue={accountValue}
Add user to project
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
projectOption |
To represent the projectValue mean . 0: projectValue is projectID; 1: projectValue is projectName. |
integer |
Required |
projectValue |
projectID or projectName . |
string |
Required |
userOption |
To represent the userValue mean . 0: userValue is userID; 1: userValue is loginName; 2: userValue is emailAddress. |
integer |
Required |
userValue |
userID or loginName or emailAddress. |
string |
Required |
accountOption |
To represent the accountValue mean . 0: accountValue is accountID; 1: accountValue is accountName. |
integer |
Required |
accountValue |
accountID or accountName . |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Add user to project
ApiReturnName | 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>