doc-exports/docs/modelarts/api-ref/UpdateDataset.html
Lai, Weijian 2f0818cf3d ModelArts API 22.3.0 version-20240311
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-04-05 09:35:42 +00:00

401 lines
30 KiB
HTML

<a name="UpdateDataset"></a><a name="UpdateDataset"></a>
<h1 class="topictitle1">Modifying a Dataset</h1>
<div id="body0000001296628188"><div class="section" id="UpdateDataset__section734510368567"><h4 class="sectiontitle">Function</h4><p id="UpdateDataset__p1734693665610">This API is used to modify basic information about a dataset, such as the dataset name, description, current version, and labels.</p>
</div>
<div class="section" id="UpdateDataset__section6348183625616"><h4 class="sectiontitle">URI</h4><p id="UpdateDataset__p163499363564">PUT /v2/{project_id}/datasets/{dataset_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateDataset__table19350536205612" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="UpdateDataset__row8349153613564"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="UpdateDataset__p1335113365568">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="UpdateDataset__p7351183645610">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="UpdateDataset__p10352193665613">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="UpdateDataset__p23527368565">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateDataset__row23499365569"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateDataset__p11353103645610">dataset_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateDataset__p143536367560">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateDataset__p835423619569">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateDataset__p63557364567">Dataset ID.</p>
</td>
</tr>
<tr id="UpdateDataset__row1835010367566"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateDataset__p1535583614562">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateDataset__p13357143615615">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateDataset__p3357133612560">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateDataset__p23581336125619">Project ID. For details about how to obtain the project ID, see <a href="modelarts_03_0147.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateDataset__section13596369568"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateDataset__request_UpdateDatasetReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="UpdateDataset__row736043611563"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UpdateDataset__p15361183695611">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UpdateDataset__p7362163685613">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UpdateDataset__p113628367568">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UpdateDataset__p8363203611565">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateDataset__row11360183612563"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateDataset__p13364103675618">add_labels</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateDataset__p8364203645618">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateDataset__p536583695615">Array of <a href="#UpdateDataset__request_Label">Label</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateDataset__p0366836165611">List of added labels.</p>
</td>
</tr>
<tr id="UpdateDataset__row163601436185617"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateDataset__p83671236145612">current_version_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateDataset__p1136711362565">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateDataset__p536863695612">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateDataset__p133691236125614">ID of current dataset version.</p>
</td>
</tr>
<tr id="UpdateDataset__row15360203613567"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateDataset__p11369193665620">dataset_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateDataset__p337003611567">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateDataset__p1371123615566">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateDataset__p17372103611569">Dataset name.</p>
</td>
</tr>
<tr id="UpdateDataset__row33601236185615"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateDataset__p1237223685618">delete_labels</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateDataset__p6373536125615">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateDataset__p1837410362567">Array of <a href="#UpdateDataset__request_Label">Label</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateDataset__p1837412367566">List of deleted labels.</p>
</td>
</tr>
<tr id="UpdateDataset__row5360143635619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateDataset__p17375183617569">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateDataset__p03751736175618">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateDataset__p16376036115619">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateDataset__p1537763619566">Dataset description. The value contains 0 to 256 characters and does not support the following special characters: ^!&lt;&gt;=&amp;"'</p>
</td>
</tr>
<tr id="UpdateDataset__row6360123695615"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateDataset__p637883610563">update_labels</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateDataset__p6378143617567">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateDataset__p33794360564">Array of <a href="#UpdateDataset__request_Label">Label</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateDataset__p1138073614563">List of updated labels.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="UpdateDataset__request_Label"></a><a name="request_Label"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateDataset__request_Label" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Label</caption><thead align="left"><tr id="UpdateDataset__row9381143618562"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdateDataset__p83821136115618">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdateDataset__p1338320365567">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdateDataset__p338418362561">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdateDataset__p2384163615565">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateDataset__row33811736175620"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateDataset__p138523645618">attributes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateDataset__p3385143685610">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateDataset__p1238612361563">Array of <a href="#UpdateDataset__request_LabelAttribute">LabelAttribute</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateDataset__p7387123613569">Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.</p>
</td>
</tr>
<tr id="UpdateDataset__row338193612563"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateDataset__p153887367565">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateDataset__p18388136155612">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateDataset__p103891136165614">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateDataset__p13389736115612">Label name.</p>
</td>
</tr>
<tr id="UpdateDataset__row143814366563"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateDataset__p123905364563">property</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateDataset__p1639116361566">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateDataset__p1439123655615"><a href="#UpdateDataset__request_LabelProperty">LabelProperty</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateDataset__p14392123615567">Basic attribute key-value pair of a label, such as color and shortcut keys.</p>
</td>
</tr>
<tr id="UpdateDataset__row1138193675618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateDataset__p239213611568">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateDataset__p11393163611563">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateDataset__p143931536195619">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateDataset__p739453675619">Label type. The options are as follows:</p>
<ul id="UpdateDataset__ul14395193605614"><li id="UpdateDataset__li23951836125617"><strong id="UpdateDataset__b33961136185613">0</strong>: image classification</li><li id="UpdateDataset__li15396153610569"><strong id="UpdateDataset__b83961636205618">1</strong>: object detection</li><li id="UpdateDataset__li1139743645613"><strong id="UpdateDataset__b10397143655616">100</strong>: text classification</li><li id="UpdateDataset__li73982365567"><strong id="UpdateDataset__b93981436145611">101</strong>: named entity recognition</li><li id="UpdateDataset__li8399133635619"><strong id="UpdateDataset__b1399193655610">102</strong>: text triplet relationship</li><li id="UpdateDataset__li18400183655612"><strong id="UpdateDataset__b1400193605619">103</strong>: text triplet entity</li><li id="UpdateDataset__li94008364566"><strong id="UpdateDataset__b1401536175612">200</strong>: speech classification</li><li id="UpdateDataset__li1940113612564"><strong id="UpdateDataset__b3402173614567">201</strong>: speech content</li><li id="UpdateDataset__li19402203615569"><strong id="UpdateDataset__b1140283655613">202</strong>: speech paragraph labeling</li><li id="UpdateDataset__li5403113619569"><strong id="UpdateDataset__b1540333620566">600</strong>: video classification</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="UpdateDataset__request_LabelAttribute"></a><a name="request_LabelAttribute"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateDataset__request_LabelAttribute" frame="border" border="1" rules="all"><caption><b>Table 4 </b>LabelAttribute</caption><thead align="left"><tr id="UpdateDataset__row64041636175610"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="UpdateDataset__p184058369567">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="UpdateDataset__p114067364567">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="UpdateDataset__p1640613613563">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="UpdateDataset__p3407193695615">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateDataset__row9404153645616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateDataset__p1740893611563">default_value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateDataset__p1040810364560">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateDataset__p740973615568">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateDataset__p19410113655619">Default value of a label attribute.</p>
</td>
</tr>
<tr id="UpdateDataset__row440413625612"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateDataset__p741063619561">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateDataset__p174111636135611">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateDataset__p9412136115616">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateDataset__p1541253619561">Label attribute ID.</p>
</td>
</tr>
<tr id="UpdateDataset__row8404153616562"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateDataset__p741312366569">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateDataset__p241463645616">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateDataset__p241543695617">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateDataset__p1441513625619">Label attribute name.</p>
</td>
</tr>
<tr id="UpdateDataset__row1340453614568"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateDataset__p1941615366568">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateDataset__p241703685611">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateDataset__p8417193675611">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateDataset__p1441843625611">Label attribute type. The options are as follows:</p>
<ul id="UpdateDataset__ul16419173615561"><li id="UpdateDataset__li2419136195617"><strong id="UpdateDataset__b184195365566">text</strong>: text</li><li id="UpdateDataset__li7419113611563"><strong id="UpdateDataset__b1242033685614">select</strong>: single-choice drop-down list</li></ul>
</td>
</tr>
<tr id="UpdateDataset__row1404143685619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateDataset__p442023655613">values</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateDataset__p0421193612563">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateDataset__p1042293618562">Array of <a href="#UpdateDataset__request_LabelAttributeValue">LabelAttributeValue</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateDataset__p2422133665614">List of label attribute values.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="UpdateDataset__request_LabelAttributeValue"></a><a name="request_LabelAttributeValue"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateDataset__request_LabelAttributeValue" frame="border" border="1" rules="all"><caption><b>Table 5 </b>LabelAttributeValue</caption><thead align="left"><tr id="UpdateDataset__row5423153611561"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="UpdateDataset__p342433645619">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="UpdateDataset__p14425173615614">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="UpdateDataset__p7425123616562">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="UpdateDataset__p742620364569">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateDataset__row2042363665620"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="UpdateDataset__p5426123625611">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="UpdateDataset__p1242713365562">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="UpdateDataset__p154281936165611">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="UpdateDataset__p16428123611566">Label attribute value ID.</p>
</td>
</tr>
<tr id="UpdateDataset__row174231836135614"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="UpdateDataset__p442983617565">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="UpdateDataset__p242913615560">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="UpdateDataset__p14430936165619">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="UpdateDataset__p943115365566">Label attribute value.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="UpdateDataset__request_LabelProperty"></a><a name="request_LabelProperty"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateDataset__request_LabelProperty" frame="border" border="1" rules="all"><caption><b>Table 6 </b>LabelProperty</caption><thead align="left"><tr id="UpdateDataset__row1743243616569"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.1"><p id="UpdateDataset__p1643373625611">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.2"><p id="UpdateDataset__p5434183614568">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.6.2.5.1.3"><p id="UpdateDataset__p19434113625618">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.6.2.5.1.4"><p id="UpdateDataset__p1143515369565">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateDataset__row1643210363561"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="UpdateDataset__p1843653620566">@modelarts:color</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="UpdateDataset__p1043623645616">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="UpdateDataset__p143743618569">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="UpdateDataset__p243893635617">Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: <strong id="UpdateDataset__b743893615567">#FFFFF0</strong>.</p>
</td>
</tr>
<tr id="UpdateDataset__row343215366563"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="UpdateDataset__p1643810362565">@modelarts:default_shape</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="UpdateDataset__p54391336165612">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="UpdateDataset__p1244023675616">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="UpdateDataset__p1544111361563">Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. The options are as follows:</p>
<ul id="UpdateDataset__ul544217361569"><li id="UpdateDataset__li94421536165617"><strong id="UpdateDataset__b144212366565">bndbox</strong>: rectangle</li><li id="UpdateDataset__li10442153635612"><strong id="UpdateDataset__b24437368566">polygon</strong>: polygon</li><li id="UpdateDataset__li20443163617566"><strong id="UpdateDataset__b2044420361563">circle</strong>: circle</li><li id="UpdateDataset__li5444163665612"><strong id="UpdateDataset__b194441936155611">line</strong>: straight line</li><li id="UpdateDataset__li14445153615612"><strong id="UpdateDataset__b1344513645611">dashed</strong>: dotted line</li><li id="UpdateDataset__li15446123611565"><strong id="UpdateDataset__b7446123611567">point</strong>: point</li><li id="UpdateDataset__li1344711369563"><strong id="UpdateDataset__b6447103685612">polyline</strong>: polyline</li></ul>
</td>
</tr>
<tr id="UpdateDataset__row2043212364561"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="UpdateDataset__p84481136165610">@modelarts:from_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="UpdateDataset__p2448163635617">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="UpdateDataset__p6449236115613">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="UpdateDataset__p7449193614564">Default attribute: Type of the head entity in the triplet relationship label. This attribute must be specified when a relationship label is created. This parameter is used only for the text triplet dataset.</p>
</td>
</tr>
<tr id="UpdateDataset__row8432936135616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="UpdateDataset__p44503367566">@modelarts:rename_to</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="UpdateDataset__p9451183619562">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="UpdateDataset__p245123665611">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="UpdateDataset__p945203655615">Default attribute: The new name of the label.</p>
</td>
</tr>
<tr id="UpdateDataset__row11432143625618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="UpdateDataset__p104535360568">@modelarts:shortcut</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="UpdateDataset__p19453636185616">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="UpdateDataset__p1345493615610">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="UpdateDataset__p194541636185619">Default attribute: Label shortcut key. By default, this parameter is left blank. For example: <strong id="UpdateDataset__b3455123617560">D</strong>.</p>
</td>
</tr>
<tr id="UpdateDataset__row743220362567"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.1 "><p id="UpdateDataset__p845553625611">@modelarts:to_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.2 "><p id="UpdateDataset__p3456133610563">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.6.2.5.1.3 "><p id="UpdateDataset__p6457436175614">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.6.2.5.1.4 "><p id="UpdateDataset__p17457536135616">Default attribute: Type of the tail entity in the triplet relationship label. This attribute must be specified when a relationship label is created. This parameter is used only for the text triplet dataset.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateDataset__section1845812362568"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdateDataset__p445973611567"><strong id="UpdateDataset__b12459143695610">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateDataset__response_UpdateDatasetResp" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="UpdateDataset__row945923685618"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="UpdateDataset__p2461936195618">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="UpdateDataset__p946153611561">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="UpdateDataset__p1146213612565">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateDataset__row1545963612568"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateDataset__p34627365563">dataset_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateDataset__p1846312365568">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateDataset__p10464103655613">Dataset ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateDataset__section15464336105616"><h4 class="sectiontitle">Example Requests</h4><p id="UpdateDataset__p4465133619562">Modifying a Dataset</p>
<pre class="screen" id="UpdateDataset__screen184661536185615">{
"dataset_id" : "gfghHSokody6AJigS5A",
"description" : "just a test",
"add_tags" : [ {
"name" : "Rabbit",
"type" : 0,
"property" : {
"@modelarts:color" : "#3399ff"
}
} ]
}</pre>
</div>
<div class="section" id="UpdateDataset__section24711036155614"><h4 class="sectiontitle">Example Responses</h4><p id="UpdateDataset__p10472336195617"><strong id="UpdateDataset__b847283635612">Status code: 200</strong></p>
<p id="UpdateDataset__p104722366560">OK</p>
<pre class="screen" id="UpdateDataset__screen447319366566">{
"dataset_id" : "gfghHSokody6AJigS5A"
}</pre>
</div>
<div class="section" id="UpdateDataset__section15475036185617"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateDataset__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdateDataset__row16476143617562"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UpdateDataset__p247763613564">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UpdateDataset__p10477336185612">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateDataset__row447683619568"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateDataset__p34781369565">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateDataset__p1647833685612">OK</p>
</td>
</tr>
<tr id="UpdateDataset__row14476203618567"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateDataset__p144790364567">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateDataset__p20407193795618">Unauthorized</p>
</td>
</tr>
<tr id="UpdateDataset__row54761836205614"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateDataset__p14408037195613">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateDataset__p13408193715567">Forbidden</p>
</td>
</tr>
<tr id="UpdateDataset__row124761836155615"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateDataset__p6408103715611">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateDataset__p34094374562">Not Found</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateDataset__section15409537125614"><h4 class="sectiontitle">Error Codes</h4><p id="UpdateDataset__p7409203765612">See <a href="modelarts_03_0095.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataset_management.html">Dataset Management</a></div>
</div>
</div>