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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pType

string

Required

Body Parameters

Color
NameDescriptionTypeAdditional information
color_code

integer

None.

color_name

string

Required

String length: inclusive between 0 and 30

color_code_RGB

string

String length: inclusive between 0 and 10

active

string

Required

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

String length: inclusive between 0 and 1

Request Formats

application/json, text/json

Sample:
{
  "color_code": 1,
  "color_name": "sample string 2",
  "color_code_RGB": "sample string 3",
  "active": "sample string 4"
}

application/xml, text/xml

Sample:
<Color xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <active>sample string 4</active>
  <color_code>1</color_code>
  <color_code_RGB>sample string 3</color_code_RGB>
  <color_name>sample string 2</color_name>
</Color>

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

application/bson

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

Response Information

Resource Description

Color
NameDescriptionTypeAdditional information
color_code

integer

None.

color_name

string

Required

String length: inclusive between 0 and 30

color_code_RGB

string

String length: inclusive between 0 and 10

active

string

Required

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

String length: inclusive between 0 and 1

Response Formats

application/json, text/json

Sample:
{
  "color_code": 1,
  "color_name": "sample string 2",
  "color_code_RGB": "sample string 3",
  "active": "sample string 4"
}

application/xml, text/xml

Sample:
<Color xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <active>sample string 4</active>
  <color_code>1</color_code>
  <color_code_RGB>sample string 3</color_code_RGB>
  <color_name>sample string 2</color_name>
</Color>

application/bson

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