POST api/admin/templates

Request Information

URI Parameters

None.

Body Parameters

Templates
NameDescriptionTypeAdditional information
Id

string

None.

Description

string

None.

Template

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Description": "sample string 2",
  "Template": "sample string 3"
}

text/html

Sample:
{"Id":"sample string 1","Description":"sample string 2","Template":"sample string 3"}

application/xml, text/xml

Sample:
<Templates xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
  <Description>sample string 2</Description>
  <Id>sample string 1</Id>
  <Template>sample string 3</Template>
</Templates>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.