POST /images/media/{savedMediaId}/archive
Archive a media library item. Idempotent — archiving an already archived item succeeds.
Remove a generated image (or other item you created) from the workspace media library without deleting the underlying file. Existing URLs continue to work.
Removes an item you created (such as a generated image) from the workspace media library. The operation is idempotent - archiving an already archived item succeeds. The underlying file is not deleted: existing URLs continue to work.
API key for authentication
The media library identifier of the item to archive, as returned in image.savedMediaId by the image generation status endpoint
def456uvwItem archived successfully
The media library identifier of the archived item
def456uvwConfirmation that the item is archived
trueInvalid request parameters
Invalid or missing API key
Access denied or feature not available
Item not found
POST /v1.0/images/media/{savedMediaId}/archive HTTP/1.1
Host: public-api.gamma.app
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"savedMediaId": "def456uvw",
"archived": true
}Related
GET /images/{id} to retrieve
savedMediaIdafter generation completesPOST /images to generate a new standalone image
POST /gammas/{gammaId}/archive to archive a Gamma document instead
Last updated
Was this helpful?