POST api/CustomForm/CreateOrModityFromItem

创建/编辑表单子项(字段)

Request Information

URI Parameters

None.

Body Parameters

ChangeCustomFormItemDto
NameDescriptionTypeAdditional 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:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ChangeCustomFormItemDto'.

Response Information

Resource Description

创建/编辑表单子项(字段)

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

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/" />