Nurama Developers
AssetOriginals

Request prunes for a selection of a project's assets

Requests a prune for every asset in the selection that can be pruned, all with the same `pruneAfter`. The rest are returned in `skipped` with their reasons. Requires `canPruneAsset` on the project.

POST
/projects/{projectId}/original-pruning/prune

Requests a prune for every asset in the selection that can be pruned, all with the same pruneAfter. The rest are returned in skipped with their reasons. Requires canPruneAsset on the project.

Authorization

AuthorizationBearer <token>

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:write

Path Parameters

projectId*string

The ID of the project.

Formatuuid

Request 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

application/json

curl -X POST "https://example.com/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/original-pruning/prune" \  -H "Content-Type: application/json" \  -d '{}'
{  "requested": [    "beb2cc3e-b0a8-404e-9fcf-7aa452138979"  ],  "skipped": [    {      "assetId": "9179b887-04ef-4ce5-ab3a-b5bbd39ea3c8",      "reasons": [        "string"      ]    }  ],  "pruneAfter": 0,  "notFound": [    "a5c27a1b-02ef-4e29-a68c-d7626bfb5eb1"  ]}