doc-exports/docs/smn/api-ref/smn_api_53003.html
guoyanyan feae604f17 SMN API 20220929 v1
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: guoyanyan <guoyanyan3@huawei.com>
Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
2022-11-10 09:15:21 +00:00

84 lines
6.2 KiB
HTML

<a name="smn_api_53003"></a><a name="smn_api_53003"></a>
<h1 class="topictitle1">Deleting a Message Template</h1>
<div id="body63687043"><div class="section" id="smn_api_53003__section63379561"><h4 class="sectiontitle">Description</h4><ul id="smn_api_53003__ul33304380203733"><li id="smn_api_53003__li51147505203733">API name<p id="smn_api_53003__p38624841203741">DeleteMessageTemplate</p>
</li></ul>
<ul id="smn_api_53003__ul20998054203745"><li id="smn_api_53003__li46884910203750">Function<p id="smn_api_53003__p3115201610926">Delete a message template. After you delete the template, you cannot use it to publish messages any more.</p>
</li></ul>
</div>
<div class="section" id="smn_api_53003__section33545144"><h4 class="sectiontitle">URI</h4><ul id="smn_api_53003__ul30902896"><li id="smn_api_53003__li9690616">URI format<p id="smn_api_53003__p20106686">DELETE /v2/{project_id}/notifications/message_template/{message_template_id}</p>
</li></ul>
<ul id="smn_api_53003__ul46742451"><li id="smn_api_53003__li18028880">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_53003__table28042199" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_53003__row949529"><th align="left" class="cellrowborder" valign="top" width="29.299999999999997%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="smn_api_53003__p9803039"><strong id="smn_api_53003__b842352706191030">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.52%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="smn_api_53003__p55848701"><strong id="smn_api_53003__b593421527191713">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.91%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="smn_api_53003__p27450972"><strong id="smn_api_53003__b84235270619112">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="34.27%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="smn_api_53003__p8936292"><strong id="smn_api_53003__b84235270619115">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="smn_api_53003__row44975500"><td class="cellrowborder" valign="top" width="29.299999999999997%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_53003__p19136893">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="18.52%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_53003__p6584502">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_53003__p63582688">String</p>
</td>
<td class="cellrowborder" valign="top" width="34.27%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_53003__p35042050155257">Project ID</p>
<p id="smn_api_53003__p49924131">See <a href="smn_api_66000.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="smn_api_53003__row21687383"><td class="cellrowborder" valign="top" width="29.299999999999997%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_53003__p11847581">message_template_id</p>
</td>
<td class="cellrowborder" valign="top" width="18.52%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_53003__p20130041">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.91%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_53003__p19920592">String</p>
</td>
<td class="cellrowborder" valign="top" width="34.27%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_53003__p2955276">Unique resource ID of a topic. You can obtain it according 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_53003__section33470841"><h4 class="sectiontitle">Request</h4><div class="p" id="smn_api_53003__p21499831124348">Request example<pre class="screen" id="smn_api_53003__screen2178814105153">DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/message_template/b3ffa2cdda574168826316f0628f774e</pre>
</div>
</div>
<div class="section" id="smn_api_53003__section32802119"><h4 class="sectiontitle">Response</h4><ul id="smn_api_53003__ul62503562"><li id="smn_api_53003__li25661150">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_53003__table29623765" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_53003__row55864401"><th align="left" class="cellrowborder" valign="top" width="32.28322832283228%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="smn_api_53003__p28722627"><strong id="smn_api_53003__b929850706">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="32.28322832283228%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="smn_api_53003__p44831437"><strong id="smn_api_53003__b433012975">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="35.433543354335434%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="smn_api_53003__p7467800"><strong id="smn_api_53003__b1815187841">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="smn_api_53003__row6769295"><td class="cellrowborder" valign="top" width="32.28322832283228%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="smn_api_53003__p11442060">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="32.28322832283228%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="smn_api_53003__p54391657">String</p>
</td>
<td class="cellrowborder" valign="top" width="35.433543354335434%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="smn_api_53003__p43648078">Request ID, which is unique</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="smn_api_53003__li9847817">Response example<pre class="screen" id="smn_api_53003__screen3882824419420">{
"request_id": " 5fcba32bd2814ea39431829c22bda94b"
}</pre>
</li></ul>
</div>
<div class="section" id="smn_api_53003__section26783618"><h4 class="sectiontitle">Returned Value</h4><p id="smn_api_53003__p38999745">See section <a href="smn_api_63002.html">Returned Value</a>.</p>
</div>
<div class="section" id="smn_api_53003__section73211020122511"><h4 class="sectiontitle">Error Code</h4><p id="smn_api_53003__p9759142919265">See section <a href="smn_api_64000.html">Error Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="smn_api_53000.html">Template Operation</a></div>
</div>
</div>