forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
35 lines
2.3 KiB
HTML
35 lines
2.3 KiB
HTML
<a name="obs_03_0023"></a><a name="obs_03_0023"></a>
|
|
|
|
<h1 class="topictitle1">Examples</h1>
|
|
<div id="body8662426"><div class="section" id="obs_03_0023__section31331064"><h4 class="sectiontitle">Create Account Metadata</h4><p id="obs_03_0023__p22463557181153">Create Book and Subject metadata:</p>
|
|
</div>
|
|
<pre class="codeblock" id="obs_03_0023__codeblock65074267153827">curl -i -H "X-auth-token:b8b574e33b0a4f74a1961bed1b4784b8" "http://172.28.5.31:80/v1/AUTH_0ce042a9be6140769b12c1001d41bcf9" -X POST -H "X-Account-Meta-Book:MobyDick" -H "X-Account-Meta-Subject:Literature"</pre>
|
|
<pre class="screen" id="obs_03_0023__screen8634633">HTTP/1.1 204 No Content
|
|
X-Trans-Id: tx000001513971bc1a370c0-93967ab85f
|
|
Content-Length: 0
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Tue, 24 Nov 2015 12:22:13 GMT</pre>
|
|
<div class="section" id="obs_03_0023__section3117276019246"><h4 class="sectiontitle">Update Account Metadata</h4><p id="obs_03_0023__p4196562819246">Update the Subject metadata:</p>
|
|
</div>
|
|
<pre class="codeblock" id="obs_03_0023__codeblock5721306015398">curl -i -H "X-auth-token:b8b574e33b0a4f74a1961bed1b4784b8" "http://172.28.5.31:80/v1/AUTH_0ce042a9be6140769b12c1001d41bcf9" -X POST -H "X-Account-Meta-Subject:ChineseLiterature"</pre>
|
|
<pre class="screen" id="obs_03_0023__screen176006520249">HTTP/1.1 204 No Content
|
|
X-Trans-Id: tx0000015139725538370c0-f6e0c56435
|
|
Content-Length: 0
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Tue, 24 Nov 2015 12:22:53 GMT</pre>
|
|
<div class="section" id="obs_03_0023__section21941182181512"><h4 class="sectiontitle">Delete Account Metadata</h4><p id="obs_03_0023__p32405324181512">Delete the Subject metadata:</p>
|
|
</div>
|
|
<pre class="codeblock" id="obs_03_0023__codeblock28121701153943">curl -i -H "X-auth-token:b8b574e33b0a4f74a1961bed1b4784b8" "http://172.28.5.31:80/v1/AUTH_0ce042a9be6140769b12c1001d41bcf9" -X POST -H "X-Remove-Account-Meta-Subject:d"</pre>
|
|
<pre class="screen" id="obs_03_0023__screen10456083181512">HTTP/1.1 204 No Content
|
|
X-Trans-Id: tx000001513972ce7c370c0-40b77d13e2
|
|
Content-Length: 0
|
|
Content-Type: text/html;charset=UTF-8
|
|
Date: Tue, 24 Nov 2015 12:23:24 GMT</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0020.html">Create/Update/Delete Account Metadata</a></div>
|
|
</div>
|
|
</div>
|
|
|