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
string
required
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
string
required
The id of the file to copy.
object
required
Where the copy goes.
boolean
default:"false"
true removes the source after the copy succeeds.boolean
default:"false"
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
string
“success” if successful, “error” if not.
object
Errors
Related
- Blob SDK:
blob.copy(),blob.move()

