POST api/projectone/UpdateP1Member
Add a person to a P1 Project if he is not member of the P1 project, and update the person's account type in vairous modules(e.g Management, Development, Requirement, Knowledge, Test Run, Test Liberary and Defect module)
Request Information
URI Parameters
None.
Body Parameters
P1MemberUpdateBinderName | Description | Type | Additional information |
---|---|---|---|
ProjectId | integer |
None. |
|
SpaceId | integer |
None. |
|
MemberId | integer |
None. |
|
IsP1Admin | boolean |
None. |
|
AccountTypes | P1DataOfNullableOfInt32 |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProjectId": 1, "SpaceId": 2, "MemberId": 3, "IsP1Admin": true, "AccountTypes": { "Management": 1, "Development": 1, "Requirement": 1, "Knowledge": 1, "TestRun": 1, "TestLiberary": 1, "Defect": 1 } }
application/xml, text/xml
Sample:
<P1MemberUpdateBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.ProjectOne"> <AccountTypes> <Defect>1</Defect> <Development>1</Development> <Knowledge>1</Knowledge> <Management>1</Management> <Requirement>1</Requirement> <TestLiberary>1</TestLiberary> <TestRun>1</TestRun> </AccountTypes> <IsP1Admin>true</IsP1Admin> <MemberId>3</MemberId> <ProjectId>1</ProjectId> <SpaceId>2</SpaceId> </P1MemberUpdateBinder>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Add a person to a P1 Project if he is not member of the P1 project, and update the person's account type in vairous modules(e.g Management, Development, Requirement, Knowledge, Test Run, Test Liberary and Defect module)
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>