POST api/CustomForms/ImportCustomFormFieldItems
Imports items to custom form field. If item does not exist in input and the item exists in database, the item will be disabled. Intended for dropdowns only.
Request Information
URI Parameters
None.
Body Parameters
ImportCustomFormFieldItemsPostName | Description | Type | Additional information |
---|---|---|---|
CustomFormFieldId |
The id of the container for items |
integer |
None. |
Items |
Items |
Collection of CustomFormFieldItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomFormFieldId": 12, "Items": [ { "Text": "Item 1" }, { "Text": "Item 2" } ] }
application/xml, text/xml
Sample:
<ImportCustomFormFieldItemsPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <CustomFormFieldId>12</CustomFormFieldId> <Items> <CustomFormFieldItem> <Text>Item 1</Text> </CustomFormFieldItem> <CustomFormFieldItem> <Text>Item 2</Text> </CustomFormFieldItem> </Items> </ImportCustomFormFieldItemsPost>
Response Information
Resource Description
IHttpActionResultNone.