Title: Edit file content | Sim Docs
Open Graph Title: Edit file content
X Title: Edit file content
Description: Edit part of a UTF-8 file; use Replace file content to replace it entirely. Search-and-replace requires one exact match unless `replaceAll` is true. Anchored modes match trimmed complete lines; their input descriptions specify boundary handling. Non-UTF-8 files return `400`. Concurrent writes return `409`; re-read before retrying. OAuth scope: `api:write`.
Open Graph Description: Edit part of a UTF-8 file; use Replace file content to replace it entirely. Search-and-replace requires one exact match unless `replaceAll` is true. Anchored modes match trimmed complete lines; their input descriptions specify boundary handling. Non-UTF-8 files return `400`. Concurrent writes return `409`; re-read before retrying. OAuth scope: `api:write`.
X Description: Edit part of a UTF-8 file; use Replace file content to replace it entirely. Search-and-replace requires one exact match unless `replaceAll` is true. Anchored modes match trimmed complete lines; their input descriptions specify boundary handling. Non-UTF-8 files return `400`. Concurrent writes return `409`; re-read before retrying. OAuth scope: `api:write`.
Opengraph URL: https://docs.sim.ai/api-reference/files/editFileContent
Domain: docs.sim.ai
{"@context":"https://schema.org","@type":"WebSite","name":"Sim Documentation","description":"Guides and API references for Sim, the open-source AI workspace. Learn how to use Chat, build workflows, manage data, and operate your deployment.","url":"https://docs.sim.ai","inLanguage":"en","publisher":{"@type":"Organization","@id":"https://www.sim.ai#organization","name":"Sim","url":"https://www.sim.ai"}}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Edit file content","description":"Edit part of a UTF-8 file; use Replace file content to replace it entirely. Search-and-replace requires one exact match unless `replaceAll` is true. Anchored modes match trimmed complete lines; their input descriptions specify boundary handling. Non-UTF-8 files return `400`. Concurrent writes return `409`; re-read before retrying.\n\nOAuth scope: `api:write`.","url":"https://docs.sim.ai/api-reference/files/editFileContent","dateModified":"2026-11-11T15:39:23-08:00","author":{"@type":"Organization","@id":"https://www.sim.ai#organization","name":"Sim","url":"https://www.sim.ai"},"publisher":{"@type":"Organization","@id":"https://www.sim.ai#organization","name":"Sim","url":"https://www.sim.ai","logo":{"@type":"ImageObject","url":"https://docs.sim.ai/static/logo.png"}},"mainEntityOfPage":{"@type":"WebPage","@id":"https://docs.sim.ai/api-reference/files/editFileContent"},"inLanguage":"en","isPartOf":{"@type":"WebSite","name":"Sim Documentation","url":"https://docs.sim.ai"},"potentialAction":{"@type":"ReadAction","target":"https://docs.sim.ai/api-reference/files/editFileContent"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Documentation","item":"https://docs.sim.ai/introduction"},{"@type":"ListItem","position":2,"name":"Edit file content","item":"https://docs.sim.ai/api-reference/files/editFileContent"}]}
| theme-color | #141414 |
| application-name | Sim Docs |
| author | Sim |
| publisher | Sim |
| googlebot | max-video-preview:-1, max-image-preview:large, max-snippet:-1 |
| og:site_name | Sim Documentation |
| og:image | https://docs.sim.ai/api/og?title=Edit+file+content |
| og:image:width | 1200 |
| og:image:height | 675 |
| og:image:alt | Edit file content |
| og:type | article |
| article:modified_time | 2026-11-11T15:39:23-08:00 |
| twitter:card | summary_large_image |
| twitter:image | https://docs.sim.ai/api/og?title=Edit+file+content |
Links:
Viewport: width=device-width, initial-scale=1