upsertFileChunks

Upsert file chunks. Requires project.knowledge.write.

Arguments

  • inputUpsertFileChunksInput!required

  • input.fileVersionIdID!required

    Selected project file-version UUID. Mutation requires exclusive branch ownership of that version.

  • input.chunks[FileChunkInput!]!required

    Replacement chunk set, at most 500 entries. An empty array removes the existing chunks.

Responses

mutation UpsertFileChunks($input: UpsertFileChunksInput!) {  upsertFileChunks(input: $input) {    chunks {      id      index      content    }    created    updated    deleted  }}
{  "data": {    "upsertFileChunks": {      "chunks": [        {          "id": "string",          "index": 0,          "content": "string"        }      ],      "created": 0,      "updated": 0,      "deleted": 0    }  }}

The UpsertFileChunksPayload! in data.upsertFileChunks.