POST api/ProjectMembers/EditOrAdd?projectId={projectId}
Bulk Add/Edit Users to Project Base
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
projectId |
project id |
integer |
Required |
Body Parameters
members to update or add
Collection of ProjectMemberObjectName | Description | Type | Additional information |
---|---|---|---|
MemberId | integer |
None. |
|
AccountTypeId | integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "MemberId": 1, "AccountTypeId": 2 }, { "MemberId": 1, "AccountTypeId": 2 } ]
application/xml, text/xml
Sample:
<ArrayOfProjectMemberObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <ProjectMemberObject> <AccountTypeId>2</AccountTypeId> <MemberId>1</MemberId> </ProjectMemberObject> <ProjectMemberObject> <AccountTypeId>2</AccountTypeId> <MemberId>1</MemberId> </ProjectMemberObject> </ArrayOfProjectMemberObject>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Bulk Add/Edit Users to Project Base
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>