POST api/custom/addCustomField
Request Information
URI Parameters
None.
Body Parameters
CustomField| Name | Description | Type | Additional information |
|---|---|---|---|
| iCustomField | globally unique identifier |
None. |
|
| iCustomTable | globally unique identifier |
None. |
|
| table | string |
None. |
|
| name | string |
None. |
|
| datatype | string |
None. |
|
| minValue | decimal number |
None. |
|
| maxValue | decimal number |
None. |
|
| defaultValue | string |
None. |
|
| options | string |
None. |
|
| required | boolean |
None. |
|
| order | integer |
None. |
|
| visible | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"iCustomField": "5d1a3549-2572-45d1-b864-f46b16f53543",
"iCustomTable": "0128d413-1a7c-4ea2-9fc3-42c919e3d41e",
"table": "sample string 3",
"name": "sample string 4",
"datatype": "sample string 5",
"minValue": 6.0,
"maxValue": 7.0,
"defaultValue": "sample string 8",
"options": "sample string 9",
"required": true,
"order": 1,
"visible": true
}
application/xml, text/xml
Sample:
<CustomField xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Custom"> <datatype>sample string 5</datatype> <defaultValue>sample string 8</defaultValue> <iCustomField>5d1a3549-2572-45d1-b864-f46b16f53543</iCustomField> <iCustomTable>0128d413-1a7c-4ea2-9fc3-42c919e3d41e</iCustomTable> <maxValue>7</maxValue> <minValue>6</minValue> <name>sample string 4</name> <options>sample string 9</options> <order>1</order> <required>true</required> <table>sample string 3</table> <visible>true</visible> </CustomField>
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.