POST api/Sms/SaveTemplate

保存短信模板编号

Request Information

URI Parameters

None.

Body Parameters

SmsTemplate
NameDescriptionTypeAdditional information
Id

编号

integer

None.

TemplateName

模板功能

string

None.

TemplateID

模板Id 从短信服务商申请 https://console.cloud.tencent.com/smsv2/csms-template

string

None.

TemplateSample

模板示例

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TemplateName": "sample string 2",
  "TemplateID": "sample string 3",
  "TemplateSample": "sample string 4"
}

text/html

Sample:
{"Id":1,"TemplateName":"sample string 2","TemplateID":"sample string 3","TemplateSample":"sample string 4"}

application/xml, text/xml

Sample:
<SmsTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <Id>1</Id>
  <TemplateID>sample string 3</TemplateID>
  <TemplateName>sample string 2</TemplateName>
  <TemplateSample>sample string 4</TemplateSample>
</SmsTemplate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存短信模板编号

JsonRtnDtoOfSmsTemplate
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

SmsTemplate

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": 1,
    "TemplateName": "sample string 2",
    "TemplateID": "sample string 3",
    "TemplateSample": "sample string 4"
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":1,"TemplateName":"sample string 2","TemplateID":"sample string 3","TemplateSample":"sample string 4"}}

application/xml, text/xml

Sample:
<JsonRtnDtoOfSmsTemplatemEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:TemplateID>sample string 3</d2p1:TemplateID>
    <d2p1:TemplateName>sample string 2</d2p1:TemplateName>
    <d2p1:TemplateSample>sample string 4</d2p1:TemplateSample>
  </Data>
  <Msg>sample string 1</Msg>
  <State>Display</State>
</JsonRtnDtoOfSmsTemplatemEDjlcEG>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":1,"TemplateName":"sample string 2","TemplateID":"sample string 3","TemplateSample":"sample string 4"}});