Assets
Replace Asset File
Swap the file body of an existing internal asset in place, keeping the same asset ID and links.
POST
Beta. The direct upload flow is in active development. The request and
response shapes shown here are stable for production use, but we may add new
fields or capabilities without notice.
internal assets can be replaced. The flow mirrors
creating an internal asset: the response includes a single
presigned PUT URL — upload the new file body to that URL to finish. Once the
replacement is committed, the previous file is removed and any watermarking is
re-applied to the new body.
Plan storage quota is enforced on the growth in size (new byte_size minus
the current size); the per-file ceiling is 2 GB.
Path parameters
The ID (UUID) of the internal asset to replace.
Request body
Response
The asset, with its ID unchanged.
A single-PUT handle (
method: "PUT") with the presigned URL and headers
required to upload the new file body. See Upload Asset for
the field-by-field breakdown.