forked from docs/doc-exports
Reviewed-by: Bobkova, Natalia <natalia.bobkova@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
111 lines
8.3 KiB
HTML
111 lines
8.3 KiB
HTML
<a name="smn_api_53002"></a><a name="smn_api_53002"></a>
|
|
|
|
<h1 class="topictitle1">Modifying a Message Template </h1>
|
|
<div id="body44522499"><div class="section" id="smn_api_53002__section28165387"><h4 class="sectiontitle">Description</h4><ul id="smn_api_53002__ul33304380203733"><li id="smn_api_53002__li51147505203733">API name<p id="smn_api_53002__p38624841203741"><a name="smn_api_53002__li51147505203733"></a><a name="li51147505203733"></a>UpdateMessageTemplate</p>
|
|
</li></ul>
|
|
<ul id="smn_api_53002__ul20998054203745"><li id="smn_api_53002__li46884910203750">Function<p class="tabletext" id="smn_api_53002__p49552630"><a name="smn_api_53002__li46884910203750"></a><a name="li46884910203750"></a>Modify the message template content.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="smn_api_53002__section52161898"><h4 class="sectiontitle">URI</h4><ul id="smn_api_53002__ul54340131"><li id="smn_api_53002__li19299134">URI format<p class="tabletext" id="smn_api_53002__p39474480"><a name="smn_api_53002__li19299134"></a><a name="li19299134"></a>PUT /v2/{project_id}/notifications/message_template/{message_template_id}</p>
|
|
</li></ul>
|
|
<ul id="smn_api_53002__ul19726002"><li id="smn_api_53002__li43316293">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_53002__table54302323" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_53002__row60235282"><th align="left" class="cellrowborder" valign="top" width="25.5%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="smn_api_53002__p47219689"><strong id="smn_api_53002__b842352706191030">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.11%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="smn_api_53002__p66698493"><strong id="smn_api_53002__b593421527191713">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23.27%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="smn_api_53002__p33868853"><strong id="smn_api_53002__b84235270619112">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="29.12%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="smn_api_53002__p59022586"><strong id="smn_api_53002__b84235270619115">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="smn_api_53002__row29043529"><td class="cellrowborder" valign="top" width="25.5%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_53002__p3715619">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.11%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_53002__p32529705">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.27%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_53002__p17660485">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.12%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_53002__p52904931155237">Project ID</p>
|
|
<p id="smn_api_53002__p21213148">See <a href="smn_api_66000.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="smn_api_53002__row29346720"><td class="cellrowborder" valign="top" width="25.5%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_53002__p28274094">message_template_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.11%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_53002__p8500244">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23.27%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_53002__p17431163">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.12%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_53002__p2638090">Unique resource ID of a topic. You can obtain it by referring to <a href="smn_api_53004.html">Querying Message Templates</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="smn_api_53002__section66803900"><h4 class="sectiontitle">Request</h4><ul id="smn_api_53002__ul16950236"><li id="smn_api_53002__li18334396">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_53002__table30791836" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_53002__row6221225"><th align="left" class="cellrowborder" valign="top" width="23.22%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="smn_api_53002__p34157240"><strong id="smn_api_53002__b638248877">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.55%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="smn_api_53002__p15273051"><strong id="smn_api_53002__b1726867193357">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.650000000000002%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="smn_api_53002__p29157627"><strong id="smn_api_53002__b467119803">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.580000000000002%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="smn_api_53002__p12957567"><strong id="smn_api_53002__b837398978">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="smn_api_53002__row54777941"><td class="cellrowborder" valign="top" width="23.22%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="smn_api_53002__p7828214">content</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.55%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="smn_api_53002__p30105629">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.650000000000002%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="smn_api_53002__p22636847">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.580000000000002%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="smn_api_53002__p21645334">Template content, which currently supports plain text only</p>
|
|
<p id="smn_api_53002__p115842109384">The template content cannot be left blank or larger than 256 KB.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="smn_api_53002__li8866062">Example request<pre class="screen" id="smn_api_53002__screen1389893105139">PUT https://{SMN_Endpoint}/v2/{project_id}/notifications/message_template/b3ffa2cdda574168826316f0628f774f</pre>
|
|
<pre class="screen" id="smn_api_53002__screen27298902193941">{
|
|
"content": "(1/22)You are invited to subscribe to topic({topic_id_id1}). Click the following URL to confirm subscription:(If you do not want to subscribe to this topic, ignore this message.)"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="smn_api_53002__section64364196"><h4 class="sectiontitle">Response</h4><ul id="smn_api_53002__ul11012038"><li id="smn_api_53002__li31999479">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_53002__table19559856" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_53002__row645991"><th align="left" class="cellrowborder" valign="top" width="30.79%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="smn_api_53002__p52325333"><strong id="smn_api_53002__b1261453229">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.79%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="smn_api_53002__p10493555"><strong id="smn_api_53002__b40267576">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="38.42%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="smn_api_53002__p44671593"><strong id="smn_api_53002__b890916744">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="smn_api_53002__row25915775"><td class="cellrowborder" valign="top" width="30.79%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="smn_api_53002__p18803055">request_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.79%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="smn_api_53002__p46652504">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="38.42%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="smn_api_53002__p20756449">Request ID, which is unique</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="smn_api_53002__li31956933">Example response<pre class="screen" id="smn_api_53002__screen20867017194046">{
|
|
"request_id": "5fcba32bd2814ea39431829c22bda94b"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="smn_api_53002__section42406858"><h4 class="sectiontitle">Returned Value</h4><p id="smn_api_53002__p63183853">See <a href="smn_api_63002.html">Returned Value</a>.</p>
|
|
</div>
|
|
<div class="section" id="smn_api_53002__section73211020122511"><h4 class="sectiontitle">Error Codes</h4><p id="smn_api_53002__p9759142919265">See <a href="smn_api_64000.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="smn_api_53000.html">Template Operations</a></div>
|
|
</div>
|
|
</div>
|
|
|