Skip to main content
System StatusContact Support
VersionOne Community

Asset Operations Examples

This endpoint was introduced in 18.0, Winter 2018. Please view the About VersionOne information from the orange help icon in the menu bar to see if you are on this release or later.

Apply Single Operation to All Stories within a Scope

curl -i -X POST \
   -H "Content-Type:application/json" \
   -H "Authorization:Bearer 1.BO9wxGpDbI2Oh2OPbhb7wW4ghj0=" \
   -d \
'{
  "from" : "Story",
  "where" : { "Story" : "Story:1234"},
  "execute" : "Delete"
  }' \
 'https://yourVersionOneInstance/api/asset'

 

FYI: Operations that are available to assets are listed at the bottom of a meta query in the bold, italicized type.  Click this to see our test metadata. As of 7/25/18, Firefox has issues that won't show the proper styling. 

Apply single operations multiple AssetTypes

This QuickCloses all Tasks and Tests.

curl -i -X POST \
   -H "Content-Type:application/json" \
   -H "Authorization:Bearer 1.BO9wxGpDbI2Oh2OPbhb7wW4ghj0=" \
   -d \
'{
  "from": "Workitem",
  "filter": [
    "AssetType=\"Task\",\"Test\"",
    "AssetState=\"64\""
  ],
  "execute": "QuickClose"
}' \
 'https://yourVersionOneInstance/api/asset'

 

  • Was this article helpful?