21700: Install Bundler system-wide in Rails postinst
[arvados.git] / doc / api / methods / traits.html.textile.liquid
1 ---
2 layout: default
3 navsection: api
4 navmenu: API Methods
5 title: "traits"
6
7 ...
8 {% comment %}
9 Copyright (C) The Arvados Authors. All rights reserved.
10
11 SPDX-License-Identifier: CC-BY-SA-3.0
12 {% endcomment %}
13
14 {% include 'notebox_begin_warning' %}
15 This is a legacy API.  This endpoint is deprecated, disabled by default in new installations, and is slated to be removed entirely in a future major release of Arvados.  The recommended way to store metadata is with "'properties' field on collections and projects.":../properties.html
16 {% include 'notebox_end' %}
17
18 API endpoint base: @https://{{ site.arvados_api_host }}/arvados/v1/traits@
19
20 Object type: @q1cn2@
21
22 Example UUID: @zzzzz-q1cn2-0123456789abcde@
23
24 h2. Resource
25
26 A metadata record that may be used to represent a genotype or phenotype trait.
27
28 Each Trait has, in addition to the "Common resource fields":{{site.baseurl}}/api/resources.html:
29
30 table(table table-bordered table-condensed).
31 |_. Attribute|_. Type|_. Description|_. Example|
32 |name|string|||
33 |properties|hash|||
34
35 h2. Methods
36
37 See "Common resource methods":{{site.baseurl}}/api/methods.html for more information about @create@, @delete@, @get@, @list@, and @update@.
38
39 Required arguments are displayed in %{background:#ccffcc}green%.
40
41 h3. create
42
43 Create a new Trait.
44
45 Arguments:
46
47 table(table table-bordered table-condensed).
48 |_. Argument |_. Type |_. Description |_. Location |_. Example |
49 |trait|object||query||
50
51 h3. delete
52
53 Delete an existing Trait.
54
55 Arguments:
56
57 table(table table-bordered table-condensed).
58 |_. Argument |_. Type |_. Description |_. Location |_. Example |
59 {background:#ccffcc}.|uuid|string|The UUID of the Trait in question.|path||
60
61 h3. get
62
63 Gets a Trait's metadata by UUID.
64
65 Arguments:
66
67 table(table table-bordered table-condensed).
68 |_. Argument |_. Type |_. Description |_. Location |_. Example |
69 {background:#ccffcc}.|uuid|string|The UUID of the Trait in question.|path||
70
71 h3. list
72
73 List traits.
74
75 See "common resource list method.":{{site.baseurl}}/api/methods.html#index
76
77 h3. update
78
79 Update attributes of an existing Trait.
80
81 Arguments:
82
83 table(table table-bordered table-condensed).
84 |_. Argument |_. Type |_. Description |_. Location |_. Example |
85 {background:#ccffcc}.|uuid|string|The UUID of the Trait in question.|path||
86 |trait|object||query||