UpdateDraftContentInput

Requires project.files.write.

FieldTypeRequiredDescription
projectReferenceStringNo
entityIdID!YesExisting source-file path or UUID whose pending full-body draft is replaced.
entityTypeDraftEntityType!YesMust match the existing source-file type.
branchIdIDNo
bodyString!YesEmpty bodies are valid. Saves a durable draft and repairs Yjs state without creating an immutable version.
branchReferenceStringNoBranch name or UUID; equivalent branchId aliases are accepted, conflicting ones rejected. Omit/null for main.
expectedDraftVersionIntNoExpected current draft sequence (0 means no prior draft), not a committed-file version ID. Omit/null for unconditional replacement; stale values are concurrency errors409.

All GraphQL types · Operations