moveUpload

Move an upload to another path in the same project, keeping its ID. Requires project.uploads.write.

Arguments

  • inputMoveUploadInput!required

  • input.projectReferenceString

    Project ID

  • input.uploadReferenceString

    Upload UUID or project-relative path of the upload to move.

  • input.sourcePathString

    Another spelling of uploadReference. Send one of the two.

  • input.destinationPathString!required

    Destination file path

Responses

mutation MoveUpload($input: MoveUploadInput!) {  moveUpload(input: $input) {    success    error    file {      id      path      name      size      mimeType      createdAt      updatedAt    }    id    path    fileName    contentType    sizeBytes    url    status    visibility    createdAt    updatedAt    deletedAt  }}
{  "data": {    "moveUpload": {      "success": false,      "error": "string",      "file": {        "id": "string",        "path": "string",        "name": "string",        "size": 0,        "mimeType": "string",        "createdAt": "string",        "updatedAt": "string"      },      "id": "string",      "path": "string",      "fileName": "string",      "contentType": "string",      "sizeBytes": 0,      "url": "https://example.com",      "status": "pending",      "visibility": "project",      "createdAt": "2026-01-01T00:00:00Z",      "updatedAt": "2026-01-01T00:00:00Z",      "deletedAt": "2026-01-01T00:00:00Z"    }  }}

The MoveUploadPayload! in data.moveUpload.