Storage

Move or rename a file

Moves a file from fromPath to toPath within the same project bucket. The operation is implemented as a copy followed by a delete of the original. Can also be used to rename a file by specifying a new name in the same folder.

Compatible with the Supabase Storage move API.

Server only: requires the project's secret key (or service token). End-user tokens and publishable keys get 403 — moving deletes the original.

post/api/storage/{project_id}/move

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/storage/{project_id}/move
  • Auth
    HTTP bearer

Path parameters

project_idstring required
Example:my-project-123

Unique identifier for the project

Request body

fromPathstring required

Current file path relative to the project bucket root

toPathstring required

New file path relative to the project bucket root

Example request

{
  "fromPath": "uploads/draft.pdf",
  "toPath": "published/final.pdf"
}

Response

File moved successfully

errorunknown

Example response

{
  "data": {
    "message": "Successfully moved"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.