Replace a single occurrence of oldString with newString in a file in the workspace runtime sandbox, then push the change to the workspace’s default branch on GitHub.
Documentation Index
Fetch the complete documentation index at: https://docs.getcargo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Edit a file in the workspace runtime sandbox via single-occurrence string replacement, then push the change to the default branch.
Path of the file to edit, relative to the workspace working directory.
1The exact substring to replace. Must occur exactly once.
1Replacement string. May be empty to delete the match.
Optional commit message override. Defaults to 'context(runtime): edit '.
1Successful response