doc-exports/docs/smn/api-ref/smn_api_51002.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

111 lines
8.4 KiB
HTML

<a name="smn_api_51002"></a><a name="smn_api_51002"></a>
<h1 class="topictitle1">Modifying a Topic</h1>
<div id="body1471602451369"><div class="section" id="smn_api_51002__section37714282185146"><h4 class="sectiontitle">Description</h4><ul id="smn_api_51002__ul33304380203733"><li id="smn_api_51002__li51147505203733">API name<p id="smn_api_51002__p38624841203741">UpdateTopic</p>
</li></ul>
<ul id="smn_api_51002__ul20998054203745"><li id="smn_api_51002__li46884910203750">Function<p id="smn_api_51002__p20935371164415">Update the topic display name.</p>
</li></ul>
</div>
<div class="section" id="smn_api_51002__section46186214185146"><h4 class="sectiontitle">URI</h4><ul id="smn_api_51002__ul50095879185146"><li id="smn_api_51002__li48209735185146">URI format<p class="tabletext" id="smn_api_51002__p31234437185146">PUT /v2/{project_id}/notifications/topics/{topic_urn}</p>
</li></ul>
<ul id="smn_api_51002__ul12674482185146"><li id="smn_api_51002__li46961479185146">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_51002__table20000134185146" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_51002__row37235592185146"><th align="left" class="cellrowborder" valign="top" width="22.887711228877112%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="smn_api_51002__p63292990185146"><strong id="smn_api_51002__b842352706191030">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.047595240475953%" id="mcps1.3.2.3.1.1.1.5.1.2"><p id="smn_api_51002__p26458572185146"><strong id="smn_api_51002__b593421527191713">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.957304269573047%" id="mcps1.3.2.3.1.1.1.5.1.3"><p id="smn_api_51002__p62769627185146"><strong id="smn_api_51002__b84235270619112">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="26.107389261073894%" id="mcps1.3.2.3.1.1.1.5.1.4"><p id="smn_api_51002__p51175059185146"><strong id="smn_api_51002__b84235270619115">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="smn_api_51002__row13917467185146"><td class="cellrowborder" valign="top" width="22.887711228877112%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_51002__p53573052185146">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="24.047595240475953%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_51002__p44449957185146">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="26.957304269573047%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_51002__p43676799185146">String</p>
</td>
<td class="cellrowborder" valign="top" width="26.107389261073894%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_51002__p60845278154921">Project ID</p>
<p id="smn_api_51002__p48159858185146">See <a href="smn_api_66000.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="smn_api_51002__row10600782185146"><td class="cellrowborder" valign="top" width="22.887711228877112%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="smn_api_51002__p53356996185146">topic_urn</p>
</td>
<td class="cellrowborder" valign="top" width="24.047595240475953%" headers="mcps1.3.2.3.1.1.1.5.1.2 "><p id="smn_api_51002__p26949456185146">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="26.957304269573047%" headers="mcps1.3.2.3.1.1.1.5.1.3 "><p id="smn_api_51002__p35422295185146">String</p>
</td>
<td class="cellrowborder" valign="top" width="26.107389261073894%" headers="mcps1.3.2.3.1.1.1.5.1.4 "><p id="smn_api_51002__p50633667185146">Unique resource ID of a topic. You can obtain it according to <a href="smn_api_51004.html">Querying Topics</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="smn_api_51002__section18618345185146"><h4 class="sectiontitle">Request</h4><ul id="smn_api_51002__ul31690995185146"><li id="smn_api_51002__li16783502185146">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_51002__table16833793185146" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_51002__row46280455185146"><th align="left" class="cellrowborder" valign="top" width="24.55754424557544%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="smn_api_51002__p57729347185146"><strong id="smn_api_51002__b1356528961">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.537946205379455%" id="mcps1.3.3.2.1.1.1.5.1.2"><p id="smn_api_51002__p45565556185146"><strong id="smn_api_51002__b1876350995538">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21.15788421157884%" id="mcps1.3.3.2.1.1.1.5.1.3"><p id="smn_api_51002__p66931458185146"><strong id="smn_api_51002__b784388616">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="33.74662533746625%" id="mcps1.3.3.2.1.1.1.5.1.4"><p id="smn_api_51002__p52739028185146"><strong id="smn_api_51002__b1905563813">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="smn_api_51002__row7465062185146"><td class="cellrowborder" valign="top" width="24.55754424557544%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="smn_api_51002__p690294185146">display_name</p>
</td>
<td class="cellrowborder" valign="top" width="20.537946205379455%" headers="mcps1.3.3.2.1.1.1.5.1.2 "><p id="smn_api_51002__p55913834185146">No</p>
</td>
<td class="cellrowborder" valign="top" width="21.15788421157884%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="smn_api_51002__p32726699185146">String</p>
</td>
<td class="cellrowborder" valign="top" width="33.74662533746625%" headers="mcps1.3.3.2.1.1.1.5.1.4 "><p id="smn_api_51002__p17720185311254">Topic display name, which is presented as the name of the email sender in email messages</p>
<p id="smn_api_51002__p57656838184157">The display name cannot exceed 192 bytes.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="smn_api_51002__li12005312185146">Request example<pre class="screen" id="smn_api_51002__screen2228009104148">PUT https://{SMN_Endpoint}/v2/{project_id}/notifications/topics/urn:smn:regionId:f96188c7ccaf4ffba0c9aa149ab2bd57:test_topic_v2
{
"display_name":"testtest222"
}</pre>
</li></ul>
</div>
<div class="section" id="smn_api_51002__section11007541185146"><h4 class="sectiontitle">Response</h4><ul id="smn_api_51002__ul19195629185146"><li id="smn_api_51002__li38542938185146">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="smn_api_51002__table11342130185146" frame="border" border="1" rules="all"><thead align="left"><tr id="smn_api_51002__row63969717185146"><th align="left" class="cellrowborder" valign="top" width="26.16%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="smn_api_51002__p14164593185146"><strong id="smn_api_51002__b1721293395">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="23.080000000000002%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="smn_api_51002__p6481381185146"><strong id="smn_api_51002__b1338891928">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50.760000000000005%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="smn_api_51002__p55229882185146"><strong id="smn_api_51002__b946130502">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="smn_api_51002__row42504102185146"><td class="cellrowborder" valign="top" width="26.16%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="smn_api_51002__p20280204185146">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="23.080000000000002%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="smn_api_51002__p32083827185146">String</p>
</td>
<td class="cellrowborder" valign="top" width="50.760000000000005%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="smn_api_51002__p48653186185146">Request ID, which is unique</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="smn_api_51002__li30070513185146">Response example<pre class="screen" id="smn_api_51002__screen302308809477">{
"request_id": "6a63a18b8bab40ffb71ebd9cb80d0085"
}</pre>
</li></ul>
</div>
<div class="section" id="smn_api_51002__section26976275185146"><h4 class="sectiontitle">Returned Value</h4><p id="smn_api_51002__p37594675185146">See section <a href="smn_api_63002.html">Returned Value</a>.</p>
</div>
<div class="section" id="smn_api_51002__section73211020122511"><h4 class="sectiontitle">Error Code</h4><p id="smn_api_51002__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_51000.html">Topic Operations</a></div>
</div>
</div>