POST api/Personnel/SaveForm?keyValue={keyValue}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| keyValue | string |
Required |
Body Parameters
PersonnelModels| Name | Description | Type | Additional information |
|---|---|---|---|
| PERSONNEL_ID | string |
None. |
|
| CARD_NO | string |
Required String length: inclusive between 0 and 25 |
|
| IC_NO | string |
Required |
|
| P_C_NO | string |
Required String length: inclusive between 0 and 25 |
|
| PERSONNEL_NAME | string |
Required Matching regular expression pattern: ^\w+$ String length: inclusive between 2 and 10 |
|
| CARDID | string |
String length: inclusive between 0 and 18 |
|
| CUSTOMER_ID | string |
None. |
|
| DEPAR | string |
String length: inclusive between 0 and 15 |
|
| OCCUPATION | string |
String length: inclusive between 0 and 6 |
|
| SUBJECTION | integer |
None. |
|
| SEX | integer |
None. |
|
| EDU | integer |
None. |
|
| MARRY | integer |
None. |
|
| CONTACT_NUMBER | string |
None. |
|
| CERTIFICATE | string |
None. |
|
| VALID_DATE | string |
None. |
|
| ADDRESS | string |
String length: inclusive between 0 and 500 |
Request Formats
application/json, text/json
Sample:
{
"PERSONNEL_ID": "sample string 1",
"CARD_NO": "sample string 2",
"IC_NO": "sample string 3",
"P_C_NO": "sample string 4",
"PERSONNEL_NAME": "sample string 5",
"CARDID": "sample string 6",
"CUSTOMER_ID": "sample string 7",
"DEPAR": "sample string 8",
"OCCUPATION": "sample string 9",
"SUBJECTION": 10,
"SEX": 11,
"EDU": 12,
"MARRY": 13,
"CONTACT_NUMBER": "sample string 14",
"CERTIFICATE": "sample string 15",
"VALID_DATE": "sample string 16",
"ADDRESS": "sample string 17"
}
application/xml, text/xml
Sample:
<PersonnelModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CBL.V12.Models"> <ADDRESS>sample string 17</ADDRESS> <CARDID>sample string 6</CARDID> <CARD_NO>sample string 2</CARD_NO> <CERTIFICATE>sample string 15</CERTIFICATE> <CONTACT_NUMBER>sample string 14</CONTACT_NUMBER> <CUSTOMER_ID>sample string 7</CUSTOMER_ID> <DEPAR>sample string 8</DEPAR> <EDU>12</EDU> <IC_NO>sample string 3</IC_NO> <MARRY>13</MARRY> <OCCUPATION>sample string 9</OCCUPATION> <PERSONNEL_ID>sample string 1</PERSONNEL_ID> <PERSONNEL_NAME>sample string 5</PERSONNEL_NAME> <P_C_NO>sample string 4</P_C_NO> <SEX>11</SEX> <SUBJECTION>10</SUBJECTION> <VALID_DATE>sample string 16</VALID_DATE> </PersonnelModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.