POST texts/dialect/save

Request Information

Authorize

Operator

URI Parameters

None.

Body Parameters

DialectTextModel
NameDescriptionTypeAdditional information
ID

integer

None.

Title

string

Required

String length: inclusive between 0 and 500

Content

string

Required

Comments

string

None.

Sponsorship

string

String length: inclusive between 0 and 500

YearCollected

integer

None.

IsNotProcessed

boolean

None.

Lengua

LookupItemExt

Required

Ward

LookupItemExt

Required

Genre

LookupItem

None.

Publication

LookupItemExt

None.

Subjects

Collection of LookupItem

None.

Medias

Collection of LookupItem

None.

Collectors

Collection of LookupItem

None.

Editors

Collection of LookupItem

None.

Narrators

Collection of LookupItemExt

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "title": "sample string 2",
  "content": "sample string 3",
  "comments": "sample string 4",
  "sponsorship": "sample string 5",
  "yearCollected": 1,
  "isNotProcessed": true,
  "lengua": {
    "ext1ID": 1,
    "ext2ID": 2,
    "ext3ID": 3,
    "ext1": "sample string 4",
    "ext2": "sample string 5",
    "ext3": "sample string 6",
    "id": 7,
    "text": "sample string 8",
    "type": "sample string 9"
  },
  "ward": {
    "ext1ID": 1,
    "ext2ID": 2,
    "ext3ID": 3,
    "ext1": "sample string 4",
    "ext2": "sample string 5",
    "ext3": "sample string 6",
    "id": 7,
    "text": "sample string 8",
    "type": "sample string 9"
  },
  "genre": {
    "id": 1,
    "text": "sample string 2",
    "type": "sample string 3"
  },
  "publication": {
    "ext1ID": 1,
    "ext2ID": 2,
    "ext3ID": 3,
    "ext1": "sample string 4",
    "ext2": "sample string 5",
    "ext3": "sample string 6",
    "id": 7,
    "text": "sample string 8",
    "type": "sample string 9"
  },
  "subjects": [
    {
      "id": 1,
      "text": "sample string 2",
      "type": "sample string 3"
    },
    {
      "id": 1,
      "text": "sample string 2",
      "type": "sample string 3"
    }
  ],
  "medias": [
    {
      "id": 1,
      "text": "sample string 2",
      "type": "sample string 3"
    },
    {
      "id": 1,
      "text": "sample string 2",
      "type": "sample string 3"
    }
  ],
  "collectors": [
    {
      "id": 1,
      "text": "sample string 2",
      "type": "sample string 3"
    },
    {
      "id": 1,
      "text": "sample string 2",
      "type": "sample string 3"
    }
  ],
  "editors": [
    {
      "id": 1,
      "text": "sample string 2",
      "type": "sample string 3"
    },
    {
      "id": 1,
      "text": "sample string 2",
      "type": "sample string 3"
    }
  ],
  "narrators": [
    {
      "ext1ID": 1,
      "ext2ID": 2,
      "ext3ID": 3,
      "ext1": "sample string 4",
      "ext2": "sample string 5",
      "ext3": "sample string 6",
      "id": 7,
      "text": "sample string 8",
      "type": "sample string 9"
    },
    {
      "ext1ID": 1,
      "ext2ID": 2,
      "ext3ID": 3,
      "ext1": "sample string 4",
      "ext2": "sample string 5",
      "ext3": "sample string 6",
      "id": 7,
      "text": "sample string 8",
      "type": "sample string 9"
    }
  ]
}

application/xml, text/xml

Sample:
<DialectTextModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Corpora.Web.API.Models">
  <Collectors>
    <LookupItem>
      <Text>sample string 2</Text>
      <Type>sample string 3</Type>
      <ID>1</ID>
    </LookupItem>
    <LookupItem>
      <Text>sample string 2</Text>
      <Type>sample string 3</Type>
      <ID>1</ID>
    </LookupItem>
  </Collectors>
  <Comments>sample string 4</Comments>
  <Content>sample string 3</Content>
  <Editors>
    <LookupItem>
      <Text>sample string 2</Text>
      <Type>sample string 3</Type>
      <ID>1</ID>
    </LookupItem>
    <LookupItem>
      <Text>sample string 2</Text>
      <Type>sample string 3</Type>
      <ID>1</ID>
    </LookupItem>
  </Editors>
  <Genre>
    <Text>sample string 2</Text>
    <Type>sample string 3</Type>
    <ID>1</ID>
  </Genre>
  <ID>1</ID>
  <IsNotProcessed>true</IsNotProcessed>
  <Lengua>
    <Text>sample string 8</Text>
    <Type>sample string 9</Type>
    <ID>7</ID>
    <Ext1>sample string 4</Ext1>
    <Ext1ID>1</Ext1ID>
    <Ext2>sample string 5</Ext2>
    <Ext2ID>2</Ext2ID>
    <Ext3>sample string 6</Ext3>
    <Ext3ID>3</Ext3ID>
  </Lengua>
  <Medias>
    <LookupItem>
      <Text>sample string 2</Text>
      <Type>sample string 3</Type>
      <ID>1</ID>
    </LookupItem>
    <LookupItem>
      <Text>sample string 2</Text>
      <Type>sample string 3</Type>
      <ID>1</ID>
    </LookupItem>
  </Medias>
  <Narrators>
    <LookupItemExt>
      <Text>sample string 8</Text>
      <Type>sample string 9</Type>
      <ID>7</ID>
      <Ext1>sample string 4</Ext1>
      <Ext1ID>1</Ext1ID>
      <Ext2>sample string 5</Ext2>
      <Ext2ID>2</Ext2ID>
      <Ext3>sample string 6</Ext3>
      <Ext3ID>3</Ext3ID>
    </LookupItemExt>
    <LookupItemExt>
      <Text>sample string 8</Text>
      <Type>sample string 9</Type>
      <ID>7</ID>
      <Ext1>sample string 4</Ext1>
      <Ext1ID>1</Ext1ID>
      <Ext2>sample string 5</Ext2>
      <Ext2ID>2</Ext2ID>
      <Ext3>sample string 6</Ext3>
      <Ext3ID>3</Ext3ID>
    </LookupItemExt>
  </Narrators>
  <Publication>
    <Text>sample string 8</Text>
    <Type>sample string 9</Type>
    <ID>7</ID>
    <Ext1>sample string 4</Ext1>
    <Ext1ID>1</Ext1ID>
    <Ext2>sample string 5</Ext2>
    <Ext2ID>2</Ext2ID>
    <Ext3>sample string 6</Ext3>
    <Ext3ID>3</Ext3ID>
  </Publication>
  <Sponsorship>sample string 5</Sponsorship>
  <Subjects>
    <LookupItem>
      <Text>sample string 2</Text>
      <Type>sample string 3</Type>
      <ID>1</ID>
    </LookupItem>
    <LookupItem>
      <Text>sample string 2</Text>
      <Type>sample string 3</Type>
      <ID>1</ID>
    </LookupItem>
  </Subjects>
  <Title>sample string 2</Title>
  <Ward>
    <Text>sample string 8</Text>
    <Type>sample string 9</Type>
    <ID>7</ID>
    <Ext1>sample string 4</Ext1>
    <Ext1ID>1</Ext1ID>
    <Ext2>sample string 5</Ext2>
    <Ext2ID>2</Ext2ID>
    <Ext3>sample string 6</Ext3>
    <Ext3ID>3</Ext3ID>
  </Ward>
  <YearCollected>1</YearCollected>
</DialectTextModel>

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

Response Information

Resource Description

None.