Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / application / _show_advanced_curl_example.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 An example curl command to update the "<%= object.attributes.keys[-3] %>" attribute for the current <%= object.class.to_s.underscore %>:
6 <pre>
7 curl -X PUT \
8  -H "Authorization: OAuth2 $ARVADOS_API_TOKEN" \
9  --data-urlencode <%= object.class.to_s.underscore %>@/dev/stdin \
10  https://$ARVADOS_API_HOST/arvados/v1/<%= object.class.to_s.pluralize.underscore %>/<%= object.uuid %> \
11  &lt;&lt;EOF
12 <%= JSON.pretty_generate({object.attributes.keys[-3] => object.attributes.values[-3]}) %>
13 EOF
14 </pre>