updateExternalFile

Update external file. Requires project.integrations.connect.

Arguments

  • inputExternalStorageUpdateInput!required

  • input.providerString!required

    Storage provider accessed through the caller's own personal connection. A human caller is required; agent, run, and service-account credentials are refused.

  • input.projectReferenceString

    Project ID or slug. Requires project.integrations.connect through the caller's own personal provider connection.

  • input.fileIdString!required

  • input.contentString!required

  • input.contentEncodingExternalFileContentEncoding

    Content encoding; base64 when omitted. One of utf8, base64.

  • input.ifMatchString

    Refuse the write unless the file's etag still matches.

Responses

mutation UpdateExternalFile($input: ExternalStorageUpdateInput!) {  updateExternalFile(input: $input) {    id    provider    name    path    mimeType    sizeBytes    kind    parentId    modifiedAt    etag    thumbnailUrl    webUrl  }}
{  "data": {    "updateExternalFile": {      "id": "string",      "provider": "string",      "name": "string",      "path": "string",      "mimeType": "string",      "sizeBytes": 0,      "kind": "string",      "parentId": "string",      "modifiedAt": "string",      "etag": "string",      "thumbnailUrl": "https://example.com",      "webUrl": "https://example.com"    }  }}

The ExternalStorageFile! in data.updateExternalFile.