doc-exports/docs/dataartsstudio/api-ref/dataartsstudio_02_0103.html
Xiong, Chen Xiao 14a6d65e8c DataArts API 20240130 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
2024-03-01 11:46:15 +00:00

207 lines
22 KiB
HTML

<a name="dataartsstudio_02_0103"></a><a name="dataartsstudio_02_0103"></a>
<h1 class="topictitle1">Modifying a Resource</h1>
<div id="body0000001151174589"><div class="section" id="dataartsstudio_02_0103__en-us_topic_0181836125_section1738101810182"><h4 class="sectiontitle">Function</h4><p id="dataartsstudio_02_0103__en-us_topic_0181836125_p1912913467404">This API is used to modify a specific resource. When modifying the resource, specify the resource ID.</p>
<ul id="dataartsstudio_02_0103__en-us_topic_0181836125_ul613417135116"><li id="dataartsstudio_02_0103__en-us_topic_0181836125_li6874480517">The resource type and directory cannot be modified.</li></ul>
</div>
<div class="section" id="dataartsstudio_02_0103__en-us_topic_0181836125_section7934966101819"><h4 class="sectiontitle">URI</h4><ul id="dataartsstudio_02_0103__en-us_topic_0181836125_ul145591424184717"><li id="dataartsstudio_02_0103__en-us_topic_0181836125_li356152404715">URI format<p id="dataartsstudio_02_0103__en-us_topic_0181836125_p076674419427"><a name="dataartsstudio_02_0103__en-us_topic_0181836125_li356152404715"></a><a name="en-us_topic_0181836125_li356152404715"></a>PUT /v1/{project_id}/resources/{resource_id}</p>
</li></ul>
<ul id="dataartsstudio_02_0103__en-us_topic_0181836125_ul1370917277482"><li id="dataartsstudio_02_0103__en-us_topic_0181836125_li170972720484">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_table46023801181358" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_row26974916181358"><th align="left" class="cellrowborder" valign="top" width="20.05%" id="mcps1.3.2.3.1.1.2.5.1.1"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_p37484572181358">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.530000000000001%" id="mcps1.3.2.3.1.1.2.5.1.2"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_p16351468181358">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.12%" id="mcps1.3.2.3.1.1.2.5.1.3"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_p49400541181358">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="53.300000000000004%" id="mcps1.3.2.3.1.1.2.5.1.4"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_p42020886181358">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_row48248640181358"><td class="cellrowborder" valign="top" width="20.05%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_p15825795181358">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="10.530000000000001%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_p6820998181358">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.12%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0093082049_p15629937181358">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.300000000000004%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_p8672138175612">Project ID. For details about how to obtain a project ID, see <a href="projectid_accountid.html">Project ID and Account ID</a>.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0103__en-us_topic_0181836125_row29566273563"><td class="cellrowborder" valign="top" width="20.05%" headers="mcps1.3.2.3.1.1.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_p49561027135617">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="10.530000000000001%" headers="mcps1.3.2.3.1.1.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_p1195613271566">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.12%" headers="mcps1.3.2.3.1.1.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_p421414825613">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.300000000000004%" headers="mcps1.3.2.3.1.1.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_p395617274566">Resource ID. For details about how to obtain the resource ID, see <a href="dataartsstudio_02_0105.html">Querying a Resource List</a>. The returned ID is <strong id="dataartsstudio_02_0103__b734818441976">resource_id</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="dataartsstudio_02_0103__en-us_topic_0181836125_section10789431145710"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_02_0103__en-us_topic_0181836125_table25071810112414" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameter</caption><thead align="left"><tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_row3746915131710"><th align="left" class="cellrowborder" valign="top" width="15.010000000000002%" id="mcps1.3.3.2.2.5.1.1"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_p131491731112013">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.93%" id="mcps1.3.3.2.2.5.1.2"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_p3149113112204">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.73%" id="mcps1.3.3.2.2.5.1.3"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_p13149173119204">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.33%" id="mcps1.3.3.2.2.5.1.4"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_p11149331122017">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_row174620159179"><td class="cellrowborder" valign="top" width="15.010000000000002%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_p1150183116205">workspace</p>
</td>
<td class="cellrowborder" valign="top" width="16.93%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_p4150531152016">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_p181505317209">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.33%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_p169341251122511">Workspace ID.</p>
<ul id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_ul776685742514"><li id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_li076655782516">If this parameter is not set, data in the <strong id="dataartsstudio_02_0103__b20785537144820">default</strong> workspace is queried by default.</li><li id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281363_li788605918251">To query data in other workspaces, this header must be carried.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_02_0103__en-us_topic_0181836125_table4157513131211" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Resource parameters</caption><thead align="left"><tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_row1475134418345"><th align="left" class="cellrowborder" valign="top" width="21.14%" id="mcps1.3.3.3.2.5.1.1"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1275244423417">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.57%" id="mcps1.3.3.3.2.5.1.2"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1375504413341">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.55%" id="mcps1.3.3.3.2.5.1.3"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p675774416349">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="52.739999999999995%" id="mcps1.3.3.3.2.5.1.4"><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p475920448344">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_row1760344113410"><td class="cellrowborder" valign="top" width="21.14%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p5760124443410">name</p>
</td>
<td class="cellrowborder" valign="top" width="10.57%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p476174473411">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.55%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p6763114463415">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.739999999999995%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1376304411342">Name of the resource. The name contains a maximum of 32 characters, including only letters, numbers, underscores (_), and hyphens (-).</p>
</td>
</tr>
<tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_row7763244193418"><td class="cellrowborder" valign="top" width="21.14%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1676464463414">type</p>
</td>
<td class="cellrowborder" valign="top" width="10.57%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p776544410349">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.55%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p7766174423419">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.739999999999995%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p0767244123410">Resource type.</p>
<ul id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_ul1276716442349"><li id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_li676811443344">archive</li><li id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_li176818449341">file</li><li id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_li167711644103416">jar</li></ul>
</td>
</tr>
<tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_row2416130182519"><td class="cellrowborder" valign="top" width="21.14%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1141615072518">location</p>
</td>
<td class="cellrowborder" valign="top" width="10.57%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1416120152512">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.55%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p2416001259">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.739999999999995%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p74165052512">OBS path for storing the resource file. When <strong id="dataartsstudio_02_0103__en-us_topic_0181836125_b1940441191116">type</strong> is set to <strong id="dataartsstudio_02_0103__en-us_topic_0181836125_b199451941161112">jar</strong>, <strong id="dataartsstudio_02_0103__en-us_topic_0181836125_b594544113113">location</strong> is the path for storing the main JAR package. The path contains a maximum of 1,023 characters. For example, obs://myBucket/test.jar</p>
</td>
</tr>
<tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_row477184415342"><td class="cellrowborder" valign="top" width="21.14%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p8364132164320">dependFiles</p>
</td>
<td class="cellrowborder" valign="top" width="10.57%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p14363821194310">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.55%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p13627210437">List&lt;String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="52.739999999999995%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p336182124313">JAR package and properties file that the main JAR package depends on. The description contains a maximum of 10,240 characters.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0103__row25821461015"><td class="cellrowborder" valign="top" width="21.14%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dataartsstudio_02_0103__p167209521415">dependPackages</p>
</td>
<td class="cellrowborder" valign="top" width="10.57%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dataartsstudio_02_0103__p772117521617">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.55%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dataartsstudio_02_0103__p5721552210">List&lt;DependPackage&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="52.739999999999995%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dataartsstudio_02_0103__p187211352415">JAR package and properties file that the main JAR package depends on. The description contains a maximum of 10,240 characters. If this parameter and the <strong id="dataartsstudio_02_0103__b320214714810">dependFiles</strong> parameter are both available, this parameter is preferentially parsed.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_row97741244163419"><td class="cellrowborder" valign="top" width="21.14%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p53611021124318">desc</p>
</td>
<td class="cellrowborder" valign="top" width="10.57%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1035842120431">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.55%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p10357121114319">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.739999999999995%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p163571221134318">Description of the resource. The description contains a maximum of 255 characters.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_row47771744133413"><td class="cellrowborder" valign="top" width="21.14%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1135513219431">directory</p>
</td>
<td class="cellrowborder" valign="top" width="10.57%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p163541215438">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.55%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p8352102118434">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.739999999999995%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dataartsstudio_02_0103__en-us_topic_0181836125_en-us_topic_0181281323_p1275984817177">Directory for storing the resource.</p>
<p id="dataartsstudio_02_0103__en-us_topic_0181836125_p123051357125016">Access the <span id="dataartsstudio_02_0103__text031743333811">DataArts Studio</span> console and choose <strong id="dataartsstudio_02_0103__b331711339383">Data Development</strong>. In the left navigation pane, choose <span class="menucascade" id="dataartsstudio_02_0103__menucascade1131818336380"><b><span class="uicontrol" id="dataartsstudio_02_0103__uicontrol153181033163814">Development</span></b> &gt; <b><span class="uicontrol" id="dataartsstudio_02_0103__uicontrol1531893323810">Develop Script</span></b></span>. In the directory tree of the script, you can view the created directories. The default directory is the <strong id="dataartsstudio_02_0103__b296918473486">root</strong> directory.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_02_0103__table64813481551" frame="border" border="1" rules="all"><caption><b>Table 4 </b>DependPackage parameters</caption><thead align="left"><tr id="dataartsstudio_02_0103__row1489481552"><th align="left" class="cellrowborder" valign="top" width="15.010000000000002%" id="mcps1.3.3.4.2.5.1.1"><p id="dataartsstudio_02_0103__p134814812513">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.93%" id="mcps1.3.3.4.2.5.1.2"><p id="dataartsstudio_02_0103__p114817484512">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.73%" id="mcps1.3.3.4.2.5.1.3"><p id="dataartsstudio_02_0103__p84854813517">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.33%" id="mcps1.3.3.4.2.5.1.4"><p id="dataartsstudio_02_0103__p114804820510">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_02_0103__row204817481517"><td class="cellrowborder" valign="top" width="15.010000000000002%" headers="mcps1.3.3.4.2.5.1.1 "><p id="dataartsstudio_02_0103__p44816485512">type</p>
</td>
<td class="cellrowborder" valign="top" width="16.93%" headers="mcps1.3.3.4.2.5.1.2 "><p id="dataartsstudio_02_0103__p154819481251">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.3.4.2.5.1.3 "><p id="dataartsstudio_02_0103__p34810487516">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.33%" headers="mcps1.3.3.4.2.5.1.4 "><p id="dataartsstudio_02_0103__p104817487513">File type</p>
</td>
</tr>
<tr id="dataartsstudio_02_0103__row153224419817"><td class="cellrowborder" valign="top" width="15.010000000000002%" headers="mcps1.3.3.4.2.5.1.1 "><p id="dataartsstudio_02_0103__p19533844689">location</p>
</td>
<td class="cellrowborder" valign="top" width="16.93%" headers="mcps1.3.3.4.2.5.1.2 "><p id="dataartsstudio_02_0103__p75339442817">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.3.4.2.5.1.3 "><p id="dataartsstudio_02_0103__p95331144183">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.33%" headers="mcps1.3.3.4.2.5.1.4 "><p id="dataartsstudio_02_0103__p17533044484">File path</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dataartsstudio_02_0103__en-us_topic_0181836125_section561243517589"><h4 class="sectiontitle">Response Parameters</h4><p id="dataartsstudio_02_0103__en-us_topic_0181836125_p8527193217107">None.</p>
</div>
<div class="section" id="dataartsstudio_02_0103__en-us_topic_0181836125_section358155716277"><h4 class="sectiontitle">Example Request</h4><p id="dataartsstudio_02_0103__p71931653162517">Modify a resource named <strong id="dataartsstudio_02_0103__b45142501377">test</strong>. The resource type is <strong id="dataartsstudio_02_0103__b35148501479">jar</strong>. The OBS path where the resource file is located is <strong id="dataartsstudio_02_0103__b25151508715">obs://dlf-test/hadoop-mapreduce-examples-2.4.1.jar</strong>. The JAR package and properties file on which the resource's main JAR package depends are <strong id="dataartsstudio_02_0103__b851519506714">obs://dlf-test/depend1.jar","obs://dlf-test/depend2.jar</strong>. The description is <strong id="dataartsstudio_02_0103__b1515175014718">test</strong>. The directory where the resource is located is <strong id="dataartsstudio_02_0103__b2515135015713">/resource</strong>.</p>
<pre class="screen" id="dataartsstudio_02_0103__en-us_topic_0181836125_screen165211354306">PUT /v1/b384b9e9ab9b4ee8994c8633aabc9505/resources/3624d1c3-5df5-4f20-9af9-98eadad6c5f9
{
"name": "test",
"type": "jar",
"location": "obs://dlf-test/hadoop-mapreduce-examples-2.4.1.jar",
"dependFiles": ["obs://dlf-test/depend1.jar","obs://dlf-test/depend2.jar"],
"desc": "test",
"directory":"/resource"
}</pre>
</div>
<div class="section" id="dataartsstudio_02_0103__section1353719518378"><h4 class="sectiontitle">Example Response</h4><ul id="dataartsstudio_02_0103__en-us_topic_0181836125_ul849401320464"><li id="dataartsstudio_02_0103__en-us_topic_0181836125_li149491320463">Success response<p id="dataartsstudio_02_0103__en-us_topic_0181836125_p9630194718227"><a name="dataartsstudio_02_0103__en-us_topic_0181836125_li149491320463"></a><a name="en-us_topic_0181836125_li149491320463"></a>HTTP status code 204</p>
</li><li id="dataartsstudio_02_0103__en-us_topic_0181836125_li697361214553">Failure response<p id="dataartsstudio_02_0103__en-us_topic_0181836125_p89261205810"><a name="dataartsstudio_02_0103__en-us_topic_0181836125_li697361214553"></a><a name="en-us_topic_0181836125_li697361214553"></a>HTTP status code 400</p>
<pre class="screen" id="dataartsstudio_02_0103__en-us_topic_0181836125_screen2818105917308">{
"error_code":"DLF.6241",
"error_msg":"The resource information does not exist."
}</pre>
</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_02_0060.html">Resource Management APIs</a></div>
</div>
</div>