POST api/v1/Project/update

Cập nhật Project

Request Information

URI Parameters

None.

Body Parameters

UpdateProjectBindModel
NameDescriptionTypeAdditional information
ProjectId

integer

Required

WorkspaceId

integer

Required

IsPublic

boolean

None.

ChatEnable

boolean

None.

ProjectName

string

Required

Description

string

None.

StartDate

Format: dd/MM/dd. Không có thì truyền chuỗi rỗng

string

None.

DueDate

Format: dd/MM/dd. Không có thì truyền chuỗi rỗng

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "WorkspaceId": 2,
  "IsPublic": true,
  "ChatEnable": true,
  "ProjectName": "sample string 5",
  "Description": "sample string 6",
  "StartDate": "sample string 7",
  "DueDate": "sample string 8"
}

application/xml, text/xml

Sample:
<UpdateProjectBindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <Description>sample string 6</Description>
  <DueDate>sample string 8</DueDate>
  <ProjectName>sample string 5</ProjectName>
  <StartDate>sample string 7</StartDate>
  <ChatEnable>true</ChatEnable>
  <IsPublic>true</IsPublic>
  <ProjectId>1</ProjectId>
  <WorkspaceId>2</WorkspaceId>
</UpdateProjectBindModel>

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>