POST api/Seo/UpdateTemplate

更新已有模板

Request Information

URI Parameters

None.

Body Parameters

模板

SeoTemplateDto
NameDescriptionTypeAdditional information
Id

模板ID

string

None.

Title

模板标题

string

None.

Keywords

模板关键字

string

None.

Description

模板描述

string

None.

Module

模块

ModuleType

None.

Key

数据库主键

integer

None.

PageName

页面名称

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:
<SeoTemplateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Seo">
  <Description>sample string 4</Description>
  <Id>sample string 1</Id>
  <Key>5</Key>
  <Keywords>sample string 3</Keywords>
  <Module>None</Module>
  <PageName>sample string 6</PageName>
  <Title>sample string 2</Title>
</SeoTemplateDto>

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

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