Preview pruning a selection of a project's assets
Checks every asset the selection names, without changing anything: whether each can be pruned, what it would lose, and the bytes it would free. Assets outside the project are reported in `notFound`. Requires `canPruneAsset` on the project.
Checks every asset the selection names, without changing anything:
whether each can be pruned, what it would lose, and the bytes it would
free. Assets outside the project are reported in notFound. Requires
canPruneAsset on the project.
OAuth 2.1 authorization code flow with PKCE (required of every client, public or confidential). Scopes are a ceiling on the credential, not a grant of access: a token also cannot exceed what the user who approved it may already do. A write scope does not imply its matching read — ask for both.
In: header
Scope: assets:read
Path Parameters
The ID of the project.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Assets to act on: ids, paths in the project's creator tree (a folder includes everything inside it), or both. At most 500 assets after folders are expanded.
Response Body
application/json
application/json
curl -X POST "https://example.com/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/original-pruning/preview" \ -H "Content-Type: application/json" \ -d '{}'{ "totals": { "selected": 0, "eligible": 0, "ineligible": 0, "bytesReclaimed": 0 }, "assets": [ { "eligible": true, "reasons": [ "string" ], "warnings": [ "string" ], "references": { "reviewers": true, "publicLinks": true, "publicCollections": 0, "submissions": 0 }, "bytesReclaimed": 0, "assetId": "9179b887-04ef-4ce5-ab3a-b5bbd39ea3c8", "name": "string", "mediaType": "string", "originalState": "string" } ], "notFound": [ "a5c27a1b-02ef-4e29-a68c-d7626bfb5eb1" ]}