POST api/PersonalWorkTemplate/Create

Create personal work templates by copying standard work templates

Request Information

URI Parameters

None.

Body Parameters

CreatePersonalWorkTemplateBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

PersonId

integer

None.

StandardWorkTemplateIds

Collection of WorkTemplateIdObject

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "PersonId": 2,
  "StandardWorkTemplateIds": [
    {
      "ProjectId": 1,
      "TemplateId": 2
    },
    {
      "ProjectId": 1,
      "TemplateId": 2
    }
  ]
}

application/xml, text/xml

Sample:
<CreatePersonalWorkTemplateBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <PersonId>2</PersonId>
  <ProjectId>1</ProjectId>
  <StandardWorkTemplateIds>
    <WorkTemplateIdObject>
      <ProjectId>1</ProjectId>
      <TemplateId>2</TemplateId>
    </WorkTemplateIdObject>
    <WorkTemplateIdObject>
      <ProjectId>1</ProjectId>
      <TemplateId>2</TemplateId>
    </WorkTemplateIdObject>
  </StandardWorkTemplateIds>
</CreatePersonalWorkTemplateBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Create personal work templates by copying standard work templates

API_Data_Int32[]
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfint>