Qontext icon

Qontext

Read, write and search your Qontext context repository

File → Update Content

AI-generated

Summary

Replace a file’s entire content using its ID or path and the content change ID from when the edit started. If the edit is protected or conflicts with a newer accepted change, it may be sent for review instead of being accepted immediately.

Inputs

  • File ID (required) — Select a file from the list, enter its ID, or provide its absolute path ending in .md.
  • Base Change ID (required) — The file’s last content change ID when the edit started. Use the lastChangeId returned by File > Get or File > Create; renames and moves do not advance it.
  • Content (required) — The full replacement content. Oversized content is rejected with a content_too_large error that reports the current limit.

Output shape

A single API response record.

An accepted edit returns an edit response with the file. A write sent for review returns HTTP 202 with object: "change" and no file key; this is a successful outcome. Branch on {{$json.object}} when either outcome is possible. If the file changed since the supplied Base Change ID, the service combines the versions when possible; use the returned content for the next edit.

Links

Discussion