PUT api/Template

Request Information

URI Parameters

None.

Body Parameters

Template
NameDescriptionTypeAdditional information
Name

string

Max length: 255

Body

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Body": "sample string 2"
}

text/html

Sample:
{"Name":"sample string 1","Body":"sample string 2"}

application/xml, text/xml

Sample:
<Template xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PDFGenerationWebServer.Models">
  <Body>sample string 2</Body>
  <Name>sample string 1</Name>
</Template>

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 'Template'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>