POST admin/lookups/parts

Request Information

Authorize

Admin

URI Parameters

None.

Body Parameters

PartOfSpeech
NameDescriptionTypeAdditional information
GrammaticGroups

Collection of GrammaticGroup

None.

SemanticGroups

Collection of SemanticGroup

None.

Code

string

Required

String length: inclusive between 1 and 10

ID

integer

None.

Name

string

Required

String length: inclusive between 1 and 100

SortOrder

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "id": 2,
  "name": "sample string 3",
  "sortOrder": 4
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Corpora.Domain.GrammaticGroup' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Corpora.Domain.GrammaticGroup' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

PartOfSpeech
NameDescriptionTypeAdditional information
GrammaticGroups

Collection of GrammaticGroup

None.

SemanticGroups

Collection of SemanticGroup

None.

Code

string

Required

String length: inclusive between 1 and 10

ID

integer

None.

Name

string

Required

String length: inclusive between 1 and 100

SortOrder

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "id": 2,
  "name": "sample string 3",
  "sortOrder": 4
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Corpora.Domain.GrammaticGroup' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Corpora.Domain.GrammaticGroup' contains cycles and cannot be serialized if reference tracking is disabled.