Upsert file chunks

upsertFileChunks(input: UpsertFileChunksInput!): UpsertFileChunksPayload!

Requires project.knowledge.write.

Arguments

ArgumentTypeRequired
inputUpsertFileChunksInput!Yes

Input fields

input

UpsertFileChunksInput

FieldTypeRequiredDescription
fileVersionIdID!YesSelected project file-version UUID. Mutation requires exclusive branch ownership of that version.
chunks[FileChunkInput!]!YesReplacement chunk set, at most 500 entries. An empty array removes the existing chunks.

Response

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

FieldTypeDescription
chunks[FileChunk!]!
createdInt!Number of replacement chunks inserted.
updatedInt!Always zero: this operation replaces the chunk set.
deletedInt!Number of previous chunks removed.

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

Example

query.graphql
mutation UpsertFileChunks($input: UpsertFileChunksInput!) {  upsertFileChunks(input: $input) {    created    deleted    updated  }}
variables.json
{  "input": {    "fileVersionId": "00000000-0000-4000-8000-000000000001",    "chunks": []  }}