curl --request PUT \
--url https://api.getcargo.io/v1/context/runtime/content \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"content": "<string>",
"commitMessage": "<string>"
}
'{
"commit": {
"sha": "<string>",
"message": "<string>"
}
}Create or overwrite a file in the workspace runtime sandbox and push the change to the workspace’s default branch on GitHub.
curl --request PUT \
--url https://api.getcargo.io/v1/context/runtime/content \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"path": "<string>",
"content": "<string>",
"commitMessage": "<string>"
}
'{
"commit": {
"sha": "<string>",
"message": "<string>"
}
}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.
Write a file in the workspace runtime sandbox and push the change to the default branch.
Successful response
Show child attributes
Was this page helpful?