POST api/TemplateItems

Request Information

URI Parameters

None.

Body Parameters

ShortTemplateItem
NameDescriptionTypeAdditional information
id

integer

None.

templateId

integer

None.

fieldType

integer

None.

labelText

string

None.

placeholderText

string

None.

isRequired

boolean

None.

itemOrder

integer

None.

choices

Collection of ShortTemplateItemChoice

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "templateId": 2,
  "fieldType": 3,
  "labelText": "sample string 4",
  "placeholderText": "sample string 5",
  "isRequired": true,
  "itemOrder": 7,
  "choices": [
    {
      "id": 1,
      "choiceName": "sample string 2"
    },
    {
      "id": 1,
      "choiceName": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<ShortTemplateItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IAN_QPSA.Models">
  <choices>
    <ShortTemplateItemChoice>
      <choiceName>sample string 2</choiceName>
      <id>1</id>
    </ShortTemplateItemChoice>
    <ShortTemplateItemChoice>
      <choiceName>sample string 2</choiceName>
      <id>1</id>
    </ShortTemplateItemChoice>
  </choices>
  <fieldType>3</fieldType>
  <id>1</id>
  <isRequired>true</isRequired>
  <itemOrder>7</itemOrder>
  <labelText>sample string 4</labelText>
  <placeholderText>sample string 5</placeholderText>
  <templateId>2</templateId>
</ShortTemplateItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.