POST api/States

Request Information

URI Parameters

None.

Body Parameters

State
NameDescriptionTypeAdditional information
RecordID

integer

None.

Code

string

String length: inclusive between 0 and 20

Description

string

String length: inclusive between 0 and 50

CountryCode

string

String length: inclusive between 0 and 20

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordID": 1,
  "Code": "sample string 2",
  "Description": "sample string 3",
  "CountryCode": "sample string 4",
  "ID": 5
}

application/xml, text/xml

Sample:
<State xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fabric">
  <Code>sample string 2</Code>
  <CountryCode>sample string 4</CountryCode>
  <Description>sample string 3</Description>
  <ID>5</ID>
  <RecordID>1</RecordID>
</State>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

State
NameDescriptionTypeAdditional information
RecordID

integer

None.

Code

string

String length: inclusive between 0 and 20

Description

string

String length: inclusive between 0 and 50

CountryCode

string

String length: inclusive between 0 and 20

ID

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "RecordID": 1,
  "Code": "sample string 2",
  "Description": "sample string 3",
  "CountryCode": "sample string 4",
  "ID": 5
}

application/xml, text/xml

Sample:
<State xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fabric">
  <Code>sample string 2</Code>
  <CountryCode>sample string 4</CountryCode>
  <Description>sample string 3</Description>
  <ID>5</ID>
  <RecordID>1</RecordID>
</State>