Objects
Copy or Move a Blob Object
Copies a blob object to a new path, or moves it. A move keeps the object ID; a copy creates a new object that counts toward storage.
POST
Copy or Move a Blob Object
Copies a blob object to a new
path in the same account, or moves it when move is true. A move keeps the object id and changes only path, so it doesn’t add to storage. A copy creates a new object with a new id, and its bytes count toward the quota.
Scope: blob:write.
Destination path, with the same rules as Upload in one request.
Copy only: when
path is taken, including by the source itself, save the copy as name-1.ext, name-2.ext and so on instead of returning BLOB_OBJECT_ALREADY_EXISTS. Default false. Can’t be combined with overwrite, and is ignored on a move.The workspace ID, when the blob belongs to a workspace. The call acts on the blob of the workspace owner and needs the
blob:read workspace permission (blob:manage on routes that change data). Leave it out to act on your own blob.Example request
Response
Error Responses
The error code indicating the reason for failure. Possible values:
AUTH_TOKEN_MISSING(401): NoAuthorizationheader was sent.API_KEY_INVALID(401): The API key doesn’t exist, was revoked, or its secret doesn’t match.API_KEY_SCOPE_DENIED(403): The key lacks the scope this route needs (blob:readorblob:write);details.requirednames it.WORKSPACE_PERMISSION_DENIED(403): Only withworkspace_id: you’re a member, but your role lacks the blob permission.WORKSPACE_NOT_FOUND(404): Only withworkspace_id: the workspace was not found.BLOB_NAMESPACE_SUSPENDED(403): The account’s blob storage is suspended, or its plan expired. Uploads and other writes are refused from the start of the 72-hour grace period.VALIDATION_ERROR(400): A parameter or body field failed validation.details.pathnames the field.BLOB_OBJECT_NOT_FOUND(404): Thesourcedoesn’t exist in this account.BLOB_OBJECT_ALREADY_EXISTS(409):pathis taken andoverwriteis nottrue.STORAGE_QUOTA_EXCEEDED(403): A copy would exceed the plan’s blob quota. Moves don’t add storage, so they’re not blocked by it.BLOCKED_FILE_TYPE(422): The destination extension is blocked or not allowed by the folder rule.
Last modified on November 20, 2026