8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / application / _show_advanced_curl_example.html.erb
1 An example curl command to update the "<%= object.attributes.keys[-3] %>" attribute for the current <%= object.class.to_s.underscore %>:
2 <pre>
3 curl -X PUT \
4  -H "Authorization: OAuth2 $ARVADOS_API_TOKEN" \
5  --data-urlencode <%= object.class.to_s.underscore %>@/dev/stdin \
6  https://$ARVADOS_API_HOST/arvados/v1/<%= object.class.to_s.pluralize.underscore %>/<%= object.uuid %> \
7  &lt;&lt;EOF
8 <%= JSON.pretty_generate({object.attributes.keys[-3] => object.attributes.values[-3]}) %>
9 EOF
10 </pre>