POST api/StandardWorkTemplate/addTemplatesToAccountType

add the templates to account type

Request Information

URI Parameters

None.

Body Parameters

ApplyTemplatesToAccountTypeBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

AccountTypeId

integer

None.

StandardWorkTemplateIds

Collection of integer

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<ApplyTemplatesToAccountTypeBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <AccountTypeId>2</AccountTypeId>
  <ProjectId>1</ProjectId>
  <StandardWorkTemplateIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </StandardWorkTemplateIds>
</ApplyTemplatesToAccountTypeBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

add the templates to account type

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>