POST api/WechatTemplate/UpdateSerialNum

后台 - 更新模板消息编号接口(需清除所有变量设置)

Request Information

URI Parameters

None.

Body Parameters

WexinTemplateSimpleUpdateDto
NameDescriptionTypeAdditional information
Id

主键

integer

None.

SerialNum

模板id(非编号!注意!如果公众号后台不存在该模板消息,需先调用添加至公众号接口来获取模板id再调用此接口)

string

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:
<WexinTemplateSimpleUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.WeChat">
  <Id>1</Id>
  <SerialNum>sample string 2</SerialNum>
</WexinTemplateSimpleUpdateDto>

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 'WexinTemplateSimpleUpdateDto'.

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