POST api/StandardWorkTemplate/Update

Update a standard work template by work template id

Request Information

URI Parameters

None.

Body Parameters

UpdateStandardWorkTemplateBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

TemplateId

integer

None.

GeneralInfo

StandardWorkTemplateUpdateInfo

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<UpdateStandardWorkTemplateBinder 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>
  </GeneralInfo>
  <ProjectId>1</ProjectId>
  <TemplateId>2</TemplateId>
</UpdateStandardWorkTemplateBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Update a standard 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>