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:
string
The 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:
object
An array of asset IDs to use to get trashing, untrashing, or purging dependencies.
- ids
-
Type:
array
stringArrayRequired:true
Additional Properties Allowed:Minimum Number of Items:0
An 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:
array
Minimum Number of Items:
0
An array of assets to be trashed, untrashed, or purged with their direct and reverse (upstream) dependencies.
-
Type:
object
deleteDependenciesAdditional Properties Allowed:Asset with its dependencies for trashing, untrashing, and purging operations.
Nested Schema : deleteDependencies
Type:
object
Asset with its dependencies for trashing, untrashing, and purging operations.
- asset
-
Type:
object
deleteAssetRequired:true
Additional 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:
array
dependenciesAdditional Properties Allowed:Minimum Number of Items:0
Artifacts that this asset depends on. Also referred to as downstream dependencies. - reverseDependencies
-
Type:
array
reverseDependenciesAdditional Properties Allowed:Minimum Number of Items:0
Artifacts that depend on this artifact. Also referred to as upstream dependencies.
Nested Schema : deleteAsset
Type:
object
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.
-
Type:
object
assetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
object
deleteAsset-allOf[1]Additional Properties Allowed:
Nested Schema : dependencies
Type:
array
Minimum Number of Items:
0
Artifacts that this asset depends on. Also referred to as downstream dependencies.
-
Type:
object
deleteAssetAdditional 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:
array
Minimum Number of Items:
0
Artifacts that depend on this artifact. Also referred to as upstream dependencies.
-
Type:
object
deleteAssetAdditional 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:
object
The asset representation for GET requests.
-
Type:
object
assetUpdateAdditional Properties Allowed:The asset representation for PUT requests. -
Type:
object
assetIdEtagAdditional Properties Allowed:The asset ID and entity tag (ETag) values. -
Type:
object
trashAdditional Properties Allowed:Indicator of whether the asset is in the trash. -
Type:
object
assetGet-allOf[3]Additional Properties Allowed:
Nested Schema : deleteAsset-allOf[1]
- errors
-
Type:
array
deleteErrorArrayAdditional Properties Allowed:Minimum Number of Items:0
An array of asset delete-dependency errors.
Nested Schema : assetUpdate
Type:
object
The asset representation for PUT requests.
- actionComment
-
Type:
string
- desc
-
Type:
string
Maximum Length:100
- max
-
Type:
boolean
Default Value:false
- name
-
Type:
string
Required:true
Maximum Length:100
Pattern:^[a-zA-Z][a-zA-Z0-9_]*$
- namespace
-
Type:
string
Applicable to APIs and implementations only. This value is null for all other asset types. - title
-
Type:
string
Maximum Length:255
- version
-
Type:
string
Maximum Length:100
Pattern:^[a-zA-Z0-9][\w.]*$
Asset version.
Nested Schema : assetIdEtag
Type:
object
The asset ID and entity tag (ETag) values.
- etag
-
Type:
string
The asset entity tag (ETag) value, which you can use to detect concurrent modification. - id
-
Type:
string
Required:true
Nested Schema : trash
Nested Schema : assetGet-allOf[3]
- createdOn
-
Type:
string
- deletedBy
-
Type:
string
- deletedOn
-
Type:
string
- links
-
Type:
array
entityLinksArrayAdditional Properties Allowed:Minimum Number of Items:0
An array of links for an entity's metadata. - modifiedBy
-
Type:
string
- modifiedOn
-
Type:
string
- published
-
Type:
boolean
An asset draft or published status representation.
Nested Schema : entityLinksArray
Nested Schema : items
Type:
object
Link to the entity's metadata.
- href
-
Type:
string
Required:true
Link value. - rel
-
Required:
true
Allowed Values:[ "self", "canonical" ]
Link type.
Nested Schema : deleteErrorArray
Type:
array
Minimum Number of Items:
0
An array of asset delete-dependency errors.
-
Type:
object
deleteErrorAdditional Properties Allowed:The asset delete dependencies error metadata.
Nested Schema : deleteError
Type:
object
The asset delete dependencies error metadata.
- detail
-
Type:
string
- errorCode
-
Type:
string
Required:true
- params
-
Type:
array
stringArrayAdditional Properties Allowed:Minimum Number of Items:0
An array of string values.
Nested Schema : stringArray