Restore Assets From Trash

post

/mobile/tools/1.0/assets/untrashing

Restores requested assets from trash.

Request

Supported Media Types
  • application/json
Header Parameters
If-Match
Type: string
The request completes successfully only if the ETag of the corresponding asset matches the value of this HTTP request header. To force overwrite, pass the value `*`.
Body Parameter
Asset trashing, untrashing, or purging request metadata.
Root Schema : deleteRequest
Type: object
Asset trashing, untrashing, or purging request metadata.
Nested 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.
Nested Schema : deleteDependencies
Type: object
Asset with its dependencies for trashing, untrashing, and purging operations.
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.
Nested Schema : dependencies
Type: array
Minimum Number of Items: 0
Artifacts that this asset depends on. Also referred to as downstream dependencies.
Nested Schema : reverseDependencies
Type: array
Minimum Number of Items: 0
Artifacts that depend on this artifact. Also referred to as upstream dependencies.
Nested Schema : assetGet
Type: object
The asset representation for GET requests.
Nested Schema : deleteAsset-allOf[1]
Nested Schema : assetUpdate
Type: object
The asset representation for PUT requests.
Nested Schema : assetIdEtag
Type: object
The asset ID and entity tag (ETag) values.
Nested Schema : trash
Type: object
Indicator of whether the asset is in the trash.
Nested Schema : assetGet-allOf[3]
Nested Schema : entityLinksArray
Type: array
Minimum Number of Items: 0
An array of links for an entity's metadata.
Nested Schema : items
Type: object
Link to the entity's metadata.
Nested Schema : deleteErrorArray
Type: array
Minimum Number of Items: 0
An array of asset delete-dependency errors.
Nested Schema : deleteError
Type: object
The asset delete dependencies error metadata.
Nested Schema : stringArray
Type: array
Minimum Number of Items: 0
An array of string values.

Response

Supported Media Types
  • application/json
204 Response
Assets were restored. No content was returned in this response.
400 Response
The operation failed based on the dependencies state that was passed in the request.
Body
Root Schema : error
Type: object
Nested Schema : errorDetails
Type: object
409 Response
Assets with the same name and version as requested already exist.
Body
Root Schema : error
Type: object
Nested Schema : errorDetails
Type: object
412 Response
The operation failed based on the `If-Match` condition. Typically, this is the result of concurrent modification detection. It also can be the result of improper values specified in the request headers.
Body
Root Schema : error
Type: object
Nested Schema : errorDetails
Type: object