doc-exports/docs/smn/api-ref/en-us_topic_0036017301.html
Zaoxu, Li 152a7d9381 SMN API DOC
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>
2024-06-20 15:01:38 +00:00

111 lines
9.4 KiB
HTML

<a name="EN-US_TOPIC_0036017301"></a><a name="EN-US_TOPIC_0036017301"></a>
<h1 class="topictitle1">Updating a Topic</h1>
<div id="body1471602451369"><div class="section" id="EN-US_TOPIC_0036017301__section37714282185146"><h4 class="sectiontitle">Description</h4><ul id="EN-US_TOPIC_0036017301__ul33304380203733"><li id="EN-US_TOPIC_0036017301__li51147505203733">API name<p id="EN-US_TOPIC_0036017301__p38624841203741"><a name="EN-US_TOPIC_0036017301__li51147505203733"></a><a name="li51147505203733"></a>UpdateTopic</p>
</li></ul>
<ul id="EN-US_TOPIC_0036017301__ul20998054203745"><li id="EN-US_TOPIC_0036017301__li46884910203750">Function<p id="EN-US_TOPIC_0036017301__p20935371164415"><a name="EN-US_TOPIC_0036017301__li46884910203750"></a><a name="li46884910203750"></a>Update the topic display name.</p>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0036017301__section46186214185146"><h4 class="sectiontitle">URI</h4><ul id="EN-US_TOPIC_0036017301__ul50095879185146"><li id="EN-US_TOPIC_0036017301__li48209735185146">URI format<p class="tabletext" id="EN-US_TOPIC_0036017301__p31234437185146"><a name="EN-US_TOPIC_0036017301__li48209735185146"></a><a name="li48209735185146"></a>PUT /v2/{project_id}/notifications/topics/{topic_urn}</p>
</li></ul>
<ul id="EN-US_TOPIC_0036017301__ul12674482185146"><li id="EN-US_TOPIC_0036017301__li46961479185146">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0036017301__table20000134185146" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0036017301__row37235592185146"><th align="left" class="cellrowborder" valign="top" width="22.887711228877112%" id="mcps1.3.2.3.1.1.1.5.1.1"><p id="EN-US_TOPIC_0036017301__p63292990185146"><strong id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p26458572185146"><strong id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p62769627185146"><strong id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p51175059185146"><strong id="EN-US_TOPIC_0036017301__b84235270619115">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0036017301__row13917467185146"><td class="cellrowborder" valign="top" width="22.887711228877112%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p60845278154921">Project ID</p>
<p id="EN-US_TOPIC_0036017301__p48159858185146">See <a href="smn_api_66000.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0036017301__row10600782185146"><td class="cellrowborder" valign="top" width="22.887711228877112%" headers="mcps1.3.2.3.1.1.1.5.1.1 "><p id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p50633667185146">Unique resource ID of a topic. You can obtain it by referring to <a href="en-us_topic_0036016755.html">Querying Topics</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0036017301__section18618345185146"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0036017301__ul31690995185146"><li id="EN-US_TOPIC_0036017301__li16783502185146">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0036017301__table16833793185146" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0036017301__row46280455185146"><th align="left" class="cellrowborder" valign="top" width="24.55754424557544%" id="mcps1.3.3.2.1.1.1.5.1.1"><p id="EN-US_TOPIC_0036017301__p57729347185146"><strong id="EN-US_TOPIC_0036017301__b1023500016">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="EN-US_TOPIC_0036017301__p45565556185146"><strong id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p66931458185146"><strong id="EN-US_TOPIC_0036017301__b2073828059">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="EN-US_TOPIC_0036017301__p52739028185146"><strong id="EN-US_TOPIC_0036017301__b985846364">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0036017301__row7465062185146"><td class="cellrowborder" valign="top" width="24.55754424557544%" headers="mcps1.3.3.2.1.1.1.5.1.1 "><p id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p55913834185146">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="21.15788421157884%" headers="mcps1.3.3.2.1.1.1.5.1.3 "><p id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p17720185311254">Topic display name, which is presented as the name of the email sender in email messages</p>
<p id="EN-US_TOPIC_0036017301__p57656838184157">The display name cannot exceed 192 bytes.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="EN-US_TOPIC_0036017301__li12005312185146">Example request<pre class="screen" id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__section11007541185146"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0036017301__ul19195629185146"><li id="EN-US_TOPIC_0036017301__li38542938185146">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0036017301__table11342130185146" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0036017301__row63969717185146"><th align="left" class="cellrowborder" valign="top" width="26.16%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="EN-US_TOPIC_0036017301__p14164593185146"><strong id="EN-US_TOPIC_0036017301__b175395273">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="EN-US_TOPIC_0036017301__p6481381185146"><strong id="EN-US_TOPIC_0036017301__b407912238">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="EN-US_TOPIC_0036017301__p55229882185146"><strong id="EN-US_TOPIC_0036017301__b309924453">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0036017301__row42504102185146"><td class="cellrowborder" valign="top" width="26.16%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__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="EN-US_TOPIC_0036017301__p48653186185146">Request ID, which is unique</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="EN-US_TOPIC_0036017301__li30070513185146">Example response<pre class="screen" id="EN-US_TOPIC_0036017301__screen302308809477">{
"request_id": "6a63a18b8bab40ffb71ebd9cb80d0085"
}</pre>
</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0036017301__section26976275185146"><h4 class="sectiontitle">Returned Value</h4><p id="EN-US_TOPIC_0036017301__p37594675185146">See <a href="smn_api_63002.html">Returned Value</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0036017301__section73211020122511"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0036017301__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_51000.html">Topic Operations</a></div>
</div>
</div>