X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7024cc159936593350aaf7939d700102f6510787..b9262c0e8c04f6b3d68f1ca301cc2ec56c2ef164:/doc/api/methods/traits.html.textile.liquid diff --git a/doc/api/methods/traits.html.textile.liquid b/doc/api/methods/traits.html.textile.liquid index b2548b9585..e48804702e 100644 --- a/doc/api/methods/traits.html.textile.liquid +++ b/doc/api/methods/traits.html.textile.liquid @@ -5,88 +5,74 @@ navmenu: API Methods title: "traits" ... +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. -h1. traits - -Required arguments are displayed in %{background:#ccffcc}green%. +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} +p=. *Deprecated, likely to be removed in a future version. The recommended way to store metadata is "collection properties":collections.html* -h2. create - -Create a new Trait. +API endpoint base: @https://{{ site.arvados_api_host }}/arvados/v1/traits@ -Arguments: +Object type: @q1cn2@ -table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -|trait|object||query|| +Example UUID: @zzzzz-q1cn2-0123456789abcde@ -h2. delete +h2. Resource -Delete an existing Trait. +A metadata record that may be used to represent a genotype or phenotype trait. -Arguments: +Each Trait has, in addition to the "Common resource fields":{{site.baseurl}}/api/resources.html: table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string|The UUID of the Trait in question.|path|| +|_. Attribute|_. Type|_. Description|_. Example| +|name|string||| +|properties|hash||| -h2. destroy +h2. Methods -destroy traits +See "Common resource methods":{{site.baseurl}}/api/methods.html for more information about @create@, @delete@, @get@, @list@, and @update@. -Arguments: - -table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string||path|| +Required arguments are displayed in %{background:#ccffcc}green%. -h2. get +h3. create -Gets a Trait's metadata by UUID. +Create a new Trait. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string|The UUID of the Trait in question.|path|| +|trait|object||query|| -h2. index +h3. delete -index traits +Delete an existing Trait. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | -|order|string||query|| -|where|object||query|| +{background:#ccffcc}.|uuid|string|The UUID of the Trait in question.|path|| -h2. list +h3. get -List traits. +Gets a Trait's metadata by UUID. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | -|limit|integer (default 100)|Maximum number of traits to return.|query|| -|order|string|Order in which to return matching traits.|query|| -|pageToken|string|Page token.|query|| -|q|string|Query string for searching traits.|query|| -|where|object|Conditions for filtering traits.|query|| - -h2. show +{background:#ccffcc}.|uuid|string|The UUID of the Trait in question.|path|| -show traits +h3. list -Arguments: +List traits. -table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string||path|| +See "common resource list method.":{{site.baseurl}}/api/methods.html#index -h2. update +h3. update Update attributes of an existing Trait.