Retrieve Asset Trash Dependencies
post
/mobile/tools/1.0/assets/trashDependencies
Returns the assets that should be also moved into trash or will be affected by the trashing of specified assets.
Request
Supported Media Types
- application/json
Query Parameters
- format
-
Type:
stringThe level of details returned for the trash dependencies request: * `short` includes the the requested assets, the blocking dependencies, and error messages. * `graph` includes the requested assets, and all upstream and downstream dependencies to support the dependencies graph in the UI. * `forced` includes the requested assets and all downstream dependencies recursively.short[ "short", "graph", "forced" ]
Body Parameter
An array of asset IDs to use to get trashing, untrashing, or purging dependencies.
Root Schema : deleteDependenciesRequest
Type:
objectAn array of asset IDs to use to get trashing, untrashing, or purging dependencies.
- ids
-
Type:
arraystringArrayRequired:trueAdditional Properties Allowed:Minimum Number of Items:0An array of string values.
Nested Schema : stringArray
Response
Supported Media Types
- application/json
200 Response
The asset dependencies to move into the trash.
Body
An array of assets to be trashed, untrashed, or purged with their direct and reverse (upstream) dependencies.
Root Schema : deleteDependenciesArray
Type:
arrayMinimum Number of Items:
0An array of assets to be trashed, untrashed, or purged with their direct and reverse (upstream) dependencies.
-
Type:
objectdeleteDependenciesAdditional Properties Allowed:Asset with its dependencies for trashing, untrashing, and purging operations.
Nested Schema : deleteDependencies
Type:
objectAsset with its dependencies for trashing, untrashing, and purging operations.
- asset
-
Type:
objectdeleteAssetRequired:trueAdditional Properties Allowed:The asset representation for delete-dependency requests and responses. For a request body, you must include the asset ID and, optionally, the ETag. No other attributes are necessary. The response body contains the generic asset details. - dependencies
-
Type:
arraydependenciesAdditional Properties Allowed:Minimum Number of Items:0Artifacts that this asset depends on. Also referred to as downstream dependencies. - reverseDependencies
-
Type:
arrayreverseDependenciesAdditional Properties Allowed:Minimum Number of Items:0Artifacts that depend on this artifact. Also referred to as upstream dependencies.
Nested Schema : deleteAsset
Type:
objectThe asset representation for delete-dependency requests and responses. For a request body, you must include the asset ID and, optionally, the ETag. No other attributes are necessary. The response body contains the generic asset details.
-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectdeleteAsset-allOf[1]Additional Properties Allowed:
Nested Schema : dependencies
Type:
arrayMinimum Number of Items:
0Artifacts that this asset depends on. Also referred to as downstream dependencies.
-
Type:
objectdeleteAssetAdditional Properties Allowed:The asset representation for delete-dependency requests and responses. For a request body, you must include the asset ID and, optionally, the ETag. No other attributes are necessary. The response body contains the generic asset details.
Nested Schema : reverseDependencies
Type:
arrayMinimum Number of Items:
0Artifacts that depend on this artifact. Also referred to as upstream dependencies.
-
Type:
objectdeleteAssetAdditional Properties Allowed:The asset representation for delete-dependency requests and responses. For a request body, you must include the asset ID and, optionally, the ETag. No other attributes are necessary. The response body contains the generic asset details.
Nested Schema : assetGet
Type:
objectThe asset representation for GET requests.
-
Type:
objectassetUpdateAdditional Properties Allowed:The asset representation for PUT requests. -
Type:
objectassetIdEtagAdditional Properties Allowed:The asset ID and entity tag (ETag) values. -
Type:
objecttrashAdditional Properties Allowed:Indicator of whether the asset is in the trash. -
Type:
objectassetGet-allOf[3]Additional Properties Allowed:
Nested Schema : deleteAsset-allOf[1]
- errors
-
Type:
arraydeleteErrorArrayAdditional Properties Allowed:Minimum Number of Items:0An array of asset delete-dependency errors.
Nested Schema : assetUpdate
Type:
objectThe asset representation for PUT requests.
- actionComment
-
Type:
string - desc
-
Type:
stringMaximum Length:100 - max
-
Type:
booleanDefault Value:false - name
-
Type:
stringRequired:trueMaximum Length:100Pattern:^[a-zA-Z][a-zA-Z0-9_]*$ - namespace
-
Type:
stringApplicable to APIs and implementations only. This value is null for all other asset types. - title
-
Type:
stringMaximum Length:255 - version
-
Type:
stringMaximum Length:100Pattern:^[a-zA-Z0-9][\w.]*$Asset version.
Nested Schema : assetIdEtag
Type:
objectThe asset ID and entity tag (ETag) values.
- etag
-
Type:
stringThe asset entity tag (ETag) value, which you can use to detect concurrent modification. - id
-
Type:
stringRequired:true
Nested Schema : trash
Nested Schema : assetGet-allOf[3]
- createdOn
-
Type:
string - deletedBy
-
Type:
string - deletedOn
-
Type:
string - links
-
Type:
arrayentityLinksArrayAdditional Properties Allowed:Minimum Number of Items:0An array of links for an entity's metadata. - modifiedBy
-
Type:
string - modifiedOn
-
Type:
string - published
-
Type:
booleanAn asset draft or published status representation.
Nested Schema : entityLinksArray
Nested Schema : items
Type:
objectLink to the entity's metadata.
- href
-
Type:
stringRequired:trueLink value. - rel
-
Required:
trueAllowed Values:[ "self", "canonical" ]Link type.
Nested Schema : deleteErrorArray
Type:
arrayMinimum Number of Items:
0An array of asset delete-dependency errors.
-
Type:
objectdeleteErrorAdditional Properties Allowed:The asset delete dependencies error metadata.
Nested Schema : deleteError
Type:
objectThe asset delete dependencies error metadata.
- detail
-
Type:
string - errorCode
-
Type:
stringRequired:true - params
-
Type:
arraystringArrayAdditional Properties Allowed:Minimum Number of Items:0An array of string values.
Nested Schema : stringArray