POST api/Service/SaveCustContacts?cust_num={cust_num}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cust_num

integer

Required

Body Parameters

Collection of CustContact
NameDescriptionTypeAdditional information
contact_code

integer

None.

id_num

string

Matching regular expression pattern: ^[0-9]{9}$|null

String length: inclusive between 0 and 9

degree

string

String length: inclusive between 0 and 40

last_name

string

String length: inclusive between 0 and 40

first_name

string

String length: inclusive between 0 and 40

office_phone

string

String length: inclusive between 0 and 12

mobile_phone

string

String length: inclusive between 0 and 12

fax

string

String length: inclusive between 0 and 12

email

string

Max length: 60

remarks

string

String length: inclusive between 0 and 400

represents_type

integer

None.

cust_num

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "contact_code": 1,
    "id_num": "sample string 2",
    "degree": "sample string 3",
    "last_name": "sample string 4",
    "first_name": "sample string 5",
    "office_phone": "sample string 6",
    "mobile_phone": "sample string 7",
    "fax": "sample string 8",
    "email": "sample string 9",
    "remarks": "sample string 10",
    "represents_type": 1,
    "cust_num": 11
  },
  {
    "contact_code": 1,
    "id_num": "sample string 2",
    "degree": "sample string 3",
    "last_name": "sample string 4",
    "first_name": "sample string 5",
    "office_phone": "sample string 6",
    "mobile_phone": "sample string 7",
    "fax": "sample string 8",
    "email": "sample string 9",
    "remarks": "sample string 10",
    "represents_type": 1,
    "cust_num": 11
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <CustContact>
    <contact_code>1</contact_code>
    <cust_num>11</cust_num>
    <degree>sample string 3</degree>
    <email>sample string 9</email>
    <fax>sample string 8</fax>
    <first_name>sample string 5</first_name>
    <id_num>sample string 2</id_num>
    <last_name>sample string 4</last_name>
    <mobile_phone>sample string 7</mobile_phone>
    <office_phone>sample string 6</office_phone>
    <remarks>sample string 10</remarks>
    <represents_type>1</represents_type>
  </CustContact>
  <CustContact>
    <contact_code>1</contact_code>
    <cust_num>11</cust_num>
    <degree>sample string 3</degree>
    <email>sample string 9</email>
    <fax>sample string 8</fax>
    <first_name>sample string 5</first_name>
    <id_num>sample string 2</id_num>
    <last_name>sample string 4</last_name>
    <mobile_phone>sample string 7</mobile_phone>
    <office_phone>sample string 6</office_phone>
    <remarks>sample string 10</remarks>
    <represents_type>1</represents_type>
  </CustContact>
</ArrayOfCustContact>

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 'List`1'.

application/bson

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

Response Information

Resource Description

Collection of CustContact
NameDescriptionTypeAdditional information
contact_code

integer

None.

id_num

string

Matching regular expression pattern: ^[0-9]{9}$|null

String length: inclusive between 0 and 9

degree

string

String length: inclusive between 0 and 40

last_name

string

String length: inclusive between 0 and 40

first_name

string

String length: inclusive between 0 and 40

office_phone

string

String length: inclusive between 0 and 12

mobile_phone

string

String length: inclusive between 0 and 12

fax

string

String length: inclusive between 0 and 12

email

string

Max length: 60

remarks

string

String length: inclusive between 0 and 400

represents_type

integer

None.

cust_num

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "contact_code": 1,
    "id_num": "sample string 2",
    "degree": "sample string 3",
    "last_name": "sample string 4",
    "first_name": "sample string 5",
    "office_phone": "sample string 6",
    "mobile_phone": "sample string 7",
    "fax": "sample string 8",
    "email": "sample string 9",
    "remarks": "sample string 10",
    "represents_type": 1,
    "cust_num": 11
  },
  {
    "contact_code": 1,
    "id_num": "sample string 2",
    "degree": "sample string 3",
    "last_name": "sample string 4",
    "first_name": "sample string 5",
    "office_phone": "sample string 6",
    "mobile_phone": "sample string 7",
    "fax": "sample string 8",
    "email": "sample string 9",
    "remarks": "sample string 10",
    "represents_type": 1,
    "cust_num": 11
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
  <CustContact>
    <contact_code>1</contact_code>
    <cust_num>11</cust_num>
    <degree>sample string 3</degree>
    <email>sample string 9</email>
    <fax>sample string 8</fax>
    <first_name>sample string 5</first_name>
    <id_num>sample string 2</id_num>
    <last_name>sample string 4</last_name>
    <mobile_phone>sample string 7</mobile_phone>
    <office_phone>sample string 6</office_phone>
    <remarks>sample string 10</remarks>
    <represents_type>1</represents_type>
  </CustContact>
  <CustContact>
    <contact_code>1</contact_code>
    <cust_num>11</cust_num>
    <degree>sample string 3</degree>
    <email>sample string 9</email>
    <fax>sample string 8</fax>
    <first_name>sample string 5</first_name>
    <id_num>sample string 2</id_num>
    <last_name>sample string 4</last_name>
    <mobile_phone>sample string 7</mobile_phone>
    <office_phone>sample string 6</office_phone>
    <remarks>sample string 10</remarks>
    <represents_type>1</represents_type>
  </CustContact>
</ArrayOfCustContact>

application/bson

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