POST admin/authors

Request Information

Authorize

Admin

URI Parameters

None.

Body Parameters

AuthorModel
NameDescriptionTypeAdditional information
ID

integer

None.

Forename

string

Required

String length: inclusive between 0 and 50

Midname

string

String length: inclusive between 0 and 50

Surname

string

Required

String length: inclusive between 0 and 50

Alias

string

String length: inclusive between 0 and 50

FullName

string

None.

FullNameAlt

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "forename": "Sample String 2",
  "midname": "Sample String 3",
  "surname": "Sample String 4",
  "alias": "Sample String 5",
  "fullName": "Sample String 2 Sample String 3 Sample String 4",
  "fullNameAlt": "Sample String 4 Sample String 2 Sample String 3"
}

application/xml, text/xml

Sample:
<AuthorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Corpora.Web.API.Models.AdminModels">
  <Alias xmlns="http://schemas.datacontract.org/2004/07/Corpora.Domain">Sample String 5</Alias>
  <Forename xmlns="http://schemas.datacontract.org/2004/07/Corpora.Domain">Sample String 2</Forename>
  <Midname xmlns="http://schemas.datacontract.org/2004/07/Corpora.Domain">Sample String 3</Midname>
  <Surname xmlns="http://schemas.datacontract.org/2004/07/Corpora.Domain">Sample String 4</Surname>
  <ID xmlns="http://schemas.datacontract.org/2004/07/Corpora.Domain">1</ID>
</AuthorModel>

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

Response Information

Resource Description

None.