POST api/TablesManagement/ADUBodyMain?type={type}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
type

string

Required

Body Parameters

BodyMain
NameDescriptionTypeAdditional information
body_main_code

integer

None.

body_main_name

string

Required

String length: inclusive between 0 and 30

active

string

Required

Matching regular expression pattern: ^[yn]{1}$

String length: inclusive between 0 and 1

Request Formats

application/json, text/json

Sample:
{
  "body_main_code": 1,
  "body_main_name": "sample string 2",
  "active": "sample string 3"
}

application/xml, text/xml

Sample:
<BodyMain xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <active>sample string 3</active>
  <body_main_code>1</body_main_code>
  <body_main_name>sample string 2</body_main_name>
</BodyMain>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

None.