POST api/PersonalWorkTemplate/Update

Update a personal work template by work template id

Request Information

URI Parameters

None.

Body Parameters

UpdatePersonalWorkTemplateBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

TemplateId

integer

None.

GeneralInfo

PersonalWorkTemplateUpdateInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "TemplateId": 2,
  "GeneralInfo": {
    "PersonId": 1,
    "Title": "sample string 1",
    "Description": "sample string 2",
    "Points": 1,
    "SystemWorkType": 1,
    "WorkType": 1
  }
}

application/xml, text/xml

Sample:
<UpdatePersonalWorkTemplateBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <GeneralInfo>
    <Description>sample string 2</Description>
    <Points>1</Points>
    <SystemWorkType>1</SystemWorkType>
    <Title>sample string 1</Title>
    <WorkType>1</WorkType>
    <PersonId>1</PersonId>
  </GeneralInfo>
  <ProjectId>1</ProjectId>
  <TemplateId>2</TemplateId>
</UpdatePersonalWorkTemplateBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Update a personal work template by work template id

ApiReturn
NameDescriptionTypeAdditional 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>