Skip to main content
Version: 24.3

Asset Operation Examples

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

Note: Examples will be given in preview mode by including "previewOnly=true" query parameter. To commit the changes to VersionOne with these API examples, simply omit the "previewOnly=true" query parameter. Edit section

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" : { "Scope" : "Scope:1234"},
"execute" : "Delete"
}' \
'https://your AgilityInstance/api/asset?previewOnly=true'

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.

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://your AgilityInstance/api/asset?previewOnly=true'

Agility bulk api

Bulk api quickstart

Asset updation examples

Asset operation examples

Advanced bulk topics