Move external file

moveExternalFile(input: ExternalStorageMoveInput!): ExternalStorageFile!

Requires project.integrations.connect.

Arguments

ArgumentTypeRequired
inputExternalStorageMoveInput!Yes

Input fields

input

ExternalStorageMoveInput

FieldTypeRequiredDescription
providerString!YesStorage provider accessed through the caller's own personal connection. A human caller is required; agent, run, and service-account credentials are refused.
projectReferenceStringNoProject ID or slug. Requires project.integrations.connect through the caller's own personal provider connection.
fileIdString!Yes
folderIdStringNoDestination folder. Provider name conflicts return conflict; Google Drive allows duplicate names. SharePoint moves remain within the same site. Use a folder item ID or root. Required unless newParentId is supplied.
nameStringNoNew name, 1-255 characters without / or control characters.
newParentIdStringNo
newNameStringNoLegacy new name. Empty keeps the current name; control characters are not allowed.

Response

Returns ExternalStorageFile!. Open the type for its fields and nested types.

FieldTypeDescription
idID!
providerString!Provider that stores the item: onedrive, sharepoint or drive.
nameString!
pathString!
mimeTypeString!
sizeBytesFloat!
kindString!
parentIdStringProvider ID of the parent folder, or null.

All fields of ExternalStorageFile.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation MoveExternalFile($input: ExternalStorageMoveInput!) {
  moveExternalFile(input: $input) {
    id
    name
    etag
    kind
    mimeType
  }
}
json
{
  "input": {
    "provider": "drive",
    "projectReference": "example-project",
    "fileId": "00000000-0000-4000-8000-000000000001"
  }
}