Read external file content. Requires project.integrations.read.
Arguments
projectReferenceString!requiredProject ID or slug. Requires project.integrations.read through the caller's own personal provider connection.
providerExternalFileProvider!requiredStorage provider accessed through the caller's own personal connection. A human caller is required; agent, run, and service-account credentials are refused. One of
onedrive,sharepoint,drive.fileIdString!required
Responses
query ExternalFileContent($projectReference: String!, $provider: ExternalFileProvider!, $fileId: String!) { externalFileContent(projectReference: $projectReference, provider: $provider, fileId: $fileId) { file { id provider name path mimeType sizeBytes kind parentId modifiedAt etag thumbnailUrl webUrl } content contentEncoding }}{ "data": { "externalFileContent": { "file": { "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" }, "content": "string", "contentEncoding": "utf8" } }}The ExternalFileContent! in data.externalFileContent.