Batch modify Assets that match a search pattern

For updating Assets, it allows you to use the same basic syntax that query.v1 supports to select a list of matching Assets, after which it then updates Attributes against the matching list.

Quickstart: Change Status and Name on all Workitems in a Scope

This will update all Story Assets that are part of Scope:0 and set their Status to Done:

curl -i -X POST \
   -H "Content-Type:application/json" \
   -d \
'{
  "from": "Story",
  "where": {
    "Scope": "Scope:0"
  },
  "set": {
    "Status": "Done",
    "Name": "They are all the same now, that\''s nuts!"
  }
}' \
 'http://localhost/VersionOne.Web/api/asset'

In YAML:

curl -i -X POST \
   -H "Content-Type:text/yaml" \
   -d \
'from: Story
where:
 Scope: Scope:0
set:
 Status: Done
 Name: They are all the same now, that\''s nuts!' \
 'http://localhost/VersionOne.Web/api/asset'

results matching ""

    No results matching ""