Context - Runtime

Write runtime sandbox file

Create or overwrite a file in the workspace runtime sandbox and push the change to the workspace's default branch on GitHub.

put/context/runtime/content

Request

  • Base URL
    https://api.getcargo.io/v1
  • URL
    https://api.getcargo.io/v1/context/runtime/content
  • Auth
    HTTP bearer

Request body

pathstring required

Path of the file to write, relative to the workspace working directory.

contentstring required

Full UTF-8 content to write.

commitMessagestring

Optional commit message override. Defaults to 'context(runtime): write <path>'.

Response

Successful response

Changes

No recorded changes to this operation across all 1 revision of this API.