POST documents/saveDocumentType

Request Information

URI Parameters

None.

Body Parameters

DocumentType
NameDescriptionTypeAdditional information
DocumentTypeId

integer

None.

DocumentTypeName

string

None.

ObjectType

string

None.

TenantId

integer

None.

Active

boolean

None.

ObjectTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DocumentTypeId": 1,
  "DocumentTypeName": "sample string 2",
  "ObjectType": "sample string 3",
  "TenantId": 4,
  "Active": true,
  "ObjectTypeId": 6
}

text/html

Sample:
{"DocumentTypeId":1,"DocumentTypeName":"sample string 2","ObjectType":"sample string 3","TenantId":4,"Active":true,"ObjectTypeId":6}

application/xml, text/xml

Sample:
<DocumentType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ListenerOnline.BusinessEntities.Documents">
  <Active>true</Active>
  <DocumentTypeId>1</DocumentTypeId>
  <DocumentTypeName>sample string 2</DocumentTypeName>
  <ObjectType>sample string 3</ObjectType>
  <ObjectTypeId>6</ObjectTypeId>
  <TenantId>4</TenantId>
</DocumentType>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.