POST api/EditorTypes

Creates an editor type.

Request Information

URI Parameters

None.

Body Parameters

The editor type model to create with.

EditorTypeDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

String length: inclusive between 0 and 250

CreationDate

date

Required

DataType

TemplateVariableDtoDataType

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "0259d3c7-6202-4905-9ae2-9f78e1cbcc0f",
  "Name": "sample string 2",
  "CreationDate": "2025-12-11T17:26:44.2576278Z",
  "DataType": 0
}

application/xml, text/xml

Sample:
<EditorTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Template.Models">
  <CreationDate>2025-12-11T17:26:44.2576278+00:00</CreationDate>
  <DataType>Bool</DataType>
  <Id>0259d3c7-6202-4905-9ae2-9f78e1cbcc0f</Id>
  <Name>sample string 2</Name>
</EditorTypeDto>

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

Response Information

Resource Description

None.