POST sml/texts/authors/save
Request Information
Authorize
OperatorURI Parameters
None.
Body Parameters
SmlAuthorModelName | Description | Type | Additional 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 |
|
BirthYear | integer |
None. |
|
DeathYear | integer |
None. |
|
Gender | Gender |
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", "birthYear": 1, "deathYear": 1, "gender": "Unknown" }
application/xml, text/xml
Sample:
<SmlAuthorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Corpora.Web.API.Models.Sml"> <Alias>sample string 5</Alias> <BirthYear>1</BirthYear> <DeathYear>1</DeathYear> <Forename>sample string 2</Forename> <Gender>Unknown</Gender> <ID>1</ID> <Midname>sample string 3</Midname> <Surname>sample string 4</Surname> </SmlAuthorModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
LookupItemName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
Text | string |
None. |
|
Type | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "id": 1, "text": "sample string 2", "type": "sample string 3" }
application/xml, text/xml
Sample:
<LookupItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Corpora.Web.API.Models"> <Text>sample string 2</Text> <Type>sample string 3</Type> <ID>1</ID> </LookupItem>