POST api/StandardWorkTemplate/ListByAccountType

Get standard work template list based on an account type

Request Information

URI Parameters

None.

Body Parameters

StandardWorkTemplateListByAccountTypeBinder
NameDescriptionTypeAdditional information
ProjectId

integer

None.

AccountTypeId

integer

None.

PageIndex

integer

None.

PageSize

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "AccountTypeId": 2,
  "PageIndex": 3,
  "PageSize": 4
}

application/xml, text/xml

Sample:
<StandardWorkTemplateListByAccountTypeBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <AccountTypeId>2</AccountTypeId>
  <PageIndex>3</PageIndex>
  <PageSize>4</PageSize>
  <ProjectId>1</ProjectId>
</StandardWorkTemplateListByAccountTypeBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Get standard work template list based on an account type

API_Data_StandardWorkTemplateList
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

StandardWorkTemplateList

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "Total": 1,
    "Items": [
      {
        "ProjectId": 1,
        "TemplateId": 2,
        "Title": "sample string 3",
        "Points": 1,
        "SystemWorkType": 1,
        "WorkType": 1,
        "WorkTypeName": "sample string 4"
      },
      {
        "ProjectId": 1,
        "TemplateId": 2,
        "Title": "sample string 3",
        "Points": 1,
        "SystemWorkType": 1,
        "WorkType": 1,
        "WorkTypeName": "sample string 4"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<API_Data_StandardWorkTemplateList 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.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities">
    <d2p1:Items>
      <d2p1:StandardWorkTemplateListItem>
        <d2p1:Points>1</d2p1:Points>
        <d2p1:ProjectId>1</d2p1:ProjectId>
        <d2p1:SystemWorkType>1</d2p1:SystemWorkType>
        <d2p1:TemplateId>2</d2p1:TemplateId>
        <d2p1:Title>sample string 3</d2p1:Title>
        <d2p1:WorkType>1</d2p1:WorkType>
        <d2p1:WorkTypeName>sample string 4</d2p1:WorkTypeName>
      </d2p1:StandardWorkTemplateListItem>
      <d2p1:StandardWorkTemplateListItem>
        <d2p1:Points>1</d2p1:Points>
        <d2p1:ProjectId>1</d2p1:ProjectId>
        <d2p1:SystemWorkType>1</d2p1:SystemWorkType>
        <d2p1:TemplateId>2</d2p1:TemplateId>
        <d2p1:Title>sample string 3</d2p1:Title>
        <d2p1:WorkType>1</d2p1:WorkType>
        <d2p1:WorkTypeName>sample string 4</d2p1:WorkTypeName>
      </d2p1:StandardWorkTemplateListItem>
    </d2p1:Items>
    <d2p1:Total>1</d2p1:Total>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_StandardWorkTemplateList>