Copy, move or rename a file
Copy, move or rename a file inside Blob Storage with POST /v1/objects/copy, server-side and without downloading it. With move: true the source is removed.
POST
The API key for your account. You can find this in your account settings.
move: true the source is removed afterwards, which is how you rename or move a file. Requires the blob:write scope and an active plan, plus blob:read on the source file.
- The copy keeps the source’s extension, content type, cache, disposition and metadata.
- A copy counts against your storage quota; a move doesn’t.
Parameters
true replaces an existing file at the destination. Otherwise the request answers 409 OBJECT_ALREADY_EXISTS.Rate limits
10 requests per 10 seconds (
RATE_LIMITED, 429).Response
Errors
Related
- Blob SDK:
blob.copy(),blob.move()

