POST api/CustomForm/CreateOrModityFromItem
创建/编辑表单子项(字段)
Request Information
URI Parameters
None.
Body Parameters
ChangeCustomFormItemDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
字段主键id(>0编辑,=0创建) |
integer |
None. |
ItemName |
字段名 |
string |
None. |
ItemType |
键值类型 |
CustomFormItemType |
None. |
PresetValues |
字段数据 |
string |
None. |
IsNeeded |
是否必填 |
boolean |
None. |
FormId |
表单id |
integer |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
application/xml, text/xml
Sample:
<ChangeCustomFormItemDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.CustomForm"> <FormId>5</FormId> <Id>1</Id> <IsNeeded>true</IsNeeded> <ItemName>sample string 2</ItemName> <ItemType>Input</ItemType> <PresetValues>sample string 3</PresetValues> </ChangeCustomFormItemDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
创建/编辑表单子项(字段)
ObjectNone.
Response Formats
application/json
Sample:
text/json
Sample:
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />