POST api/v1/Project/inviteToProject

MỜi tham gia vào Project

Request Information

URI Parameters

None.

Body Parameters

InviteProjectMemberBindModel
NameDescriptionTypeAdditional information
Email

string

Required

ProjectId

integer

Required

AddToAllTask

true: add follow tất cả task trong project

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "ProjectId": 2,
  "AddToAllTask": true
}

application/xml, text/xml

Sample:
<InviteProjectMemberBindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <AddToAllTask>true</AddToAllTask>
  <Email>sample string 1</Email>
  <ProjectId>2</ProjectId>
</InviteProjectMemberBindModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReturnResult
NameDescriptionTypeAdditional information
ErrorCode

integer

None.

ErrorMessage

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "ErrorMessage": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<ReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeamworkClassLibrary">
  <Data />
  <ErrorCode>1</ErrorCode>
  <ErrorMessage>sample string 2</ErrorMessage>
</ReturnResult>