Update external file

updateExternalFile(input: ExternalStorageUpdateInput!): ExternalStorageFile!

Requires project.integrations.connect.

Arguments

ArgumentTypeRequired
inputExternalStorageUpdateInput!Yes

Input fields

input

ExternalStorageUpdateInput

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
contentString!Yes
contentEncodingExternalFileContentEncodingNoContent encoding; base64 when omitted.
ifMatchStringNoRefuse the write unless the file's etag still matches.

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 UpdateExternalFile($input: ExternalStorageUpdateInput!) {
  updateExternalFile(input: $input) {
    id
    name
    etag
    kind
    mimeType
  }
}
json
{
  "input": {
    "provider": "drive",
    "projectReference": "example-project",
    "fileId": "00000000-0000-4000-8000-000000000001",
    "content": "aGVsbG8=",
    "contentEncoding": "base64"
  }
}