Reference
Commit files
Writes and deletes files, as one commit. All changes land, or none. Changes that match what is already there are skipped.
POST
bearerheader
AuthorizationBearer <token>namespace*stringA namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.
branch*stringA branch, such as main or agents/fix-1. Encode / as %2F.
application/json- body
message*stringLength
1 <= length <= 10000changes*array<>Items
items <= 10000Nothing changed, so no commit was made.
application/json- response
head*stringThe branch's head after the call.
changed*booleanFalse when every change matched what was already there. Then no commit is made and head is the current one.
curl -X POST 'https://example.com/v1/namespaces/string/branches/string/commits' \ -H 'Content-Type: application/json' \ -d '{ "message": "string", "changes": [ { "path": "string" } ]}'Example Response
{ "head": "string", "changed": true}