POST api/TablesManagement/ADUManufacturer?pType={pType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pType

string

Required

Body Parameters

Manufacturer
NameDescriptionTypeAdditional information
manufacturer_code

integer

None.

manufacturer_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

type_group_item

integer

None.

interface_code

string

String length: inclusive between 0 and 10

old_code

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "manufacturer_code": 1,
  "manufacturer_name": "sample string 2",
  "active": "sample string 3",
  "type_group_item": 1,
  "interface_code": "sample string 4",
  "old_code": 1
}

application/xml, text/xml

Sample:
<Manufacturer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <active>sample string 3</active>
  <interface_code>sample string 4</interface_code>
  <manufacturer_code>1</manufacturer_code>
  <manufacturer_name>sample string 2</manufacturer_name>
  <old_code>1</old_code>
  <type_group_item>1</type_group_item>
</Manufacturer>

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

application/bson

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

Response Information

Resource Description

Manufacturer
NameDescriptionTypeAdditional information
manufacturer_code

integer

None.

manufacturer_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

type_group_item

integer

None.

interface_code

string

String length: inclusive between 0 and 10

old_code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "manufacturer_code": 1,
  "manufacturer_name": "sample string 2",
  "active": "sample string 3",
  "type_group_item": 1,
  "interface_code": "sample string 4",
  "old_code": 1
}

application/xml, text/xml

Sample:
<Manufacturer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <active>sample string 3</active>
  <interface_code>sample string 4</interface_code>
  <manufacturer_code>1</manufacturer_code>
  <manufacturer_name>sample string 2</manufacturer_name>
  <old_code>1</old_code>
  <type_group_item>1</type_group_item>
</Manufacturer>

application/bson

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