POST api/userpreferencetemplate

Request Information

URI Parameters

None.

Body Parameters

DTOUserPreferenceTemplate
NameDescriptionTypeAdditional information
UserPreferenceTemplateID

integer

None.

Key

string

None.

Label

string

None.

ValueType

string

None.

IsRequired

boolean

None.

IsEncrypted

boolean

None.

DefaultValue

string

None.

Definitions

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserPreferenceTemplateID": 1,
  "Key": "sample string 2",
  "Label": "sample string 3",
  "ValueType": "sample string 4",
  "IsRequired": true,
  "IsEncrypted": true,
  "DefaultValue": "sample string 7",
  "Definitions": "sample string 8"
}

application/xml, text/xml

Sample:
<DTOUserPreferenceTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <DefaultValue>sample string 7</DefaultValue>
  <Definitions>sample string 8</Definitions>
  <IsEncrypted>true</IsEncrypted>
  <IsRequired>true</IsRequired>
  <Key>sample string 2</Key>
  <Label>sample string 3</Label>
  <UserPreferenceTemplateID>1</UserPreferenceTemplateID>
  <ValueType>sample string 4</ValueType>
</DTOUserPreferenceTemplate>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DTOUserPreferenceTemplate'.

Response Information

Resource Description

DTOUserPreferenceTemplate
NameDescriptionTypeAdditional information
UserPreferenceTemplateID

integer

None.

Key

string

None.

Label

string

None.

ValueType

string

None.

IsRequired

boolean

None.

IsEncrypted

boolean

None.

DefaultValue

string

None.

Definitions

string

None.

Response Formats

application/json, text/json

Sample:
{
  "UserPreferenceTemplateID": 1,
  "Key": "sample string 2",
  "Label": "sample string 3",
  "ValueType": "sample string 4",
  "IsRequired": true,
  "IsEncrypted": true,
  "DefaultValue": "sample string 7",
  "Definitions": "sample string 8"
}

application/xml, text/xml

Sample:
<DTOUserPreferenceTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <DefaultValue>sample string 7</DefaultValue>
  <Definitions>sample string 8</Definitions>
  <IsEncrypted>true</IsEncrypted>
  <IsRequired>true</IsRequired>
  <Key>sample string 2</Key>
  <Label>sample string 3</Label>
  <UserPreferenceTemplateID>1</UserPreferenceTemplateID>
  <ValueType>sample string 4</ValueType>
</DTOUserPreferenceTemplate>