curl --request PUT \
--url https://api.example.com/orgs/{org_id}/nodes/{node_id}/tree/{branch}/push \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"state": {},
"expected_head_commit": "<string>"
}
'{
"commit_id": "<string>",
"node_id": "<string>",
"branch": "<string>",
"message": "<string>",
"objects_created": 123,
"objects_reused": 123,
"previous_commit": "<string>",
"connection_id_mappings": {}
}Git-like full-state push operation.
This endpoint implements the declarative API where clients send the complete desired state, and the server handles diffing and object reuse automatically.
Similar to git push, the client describes the end state they want, and the
server figures out what changed and creates an optimal commit.
Features:
curl --request PUT \
--url https://api.example.com/orgs/{org_id}/nodes/{node_id}/tree/{branch}/push \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"state": {},
"expected_head_commit": "<string>"
}
'{
"commit_id": "<string>",
"node_id": "<string>",
"branch": "<string>",
"message": "<string>",
"objects_created": 123,
"objects_reused": 123,
"previous_commit": "<string>",
"connection_id_mappings": {}
}Request model for Git-like full-state push operations.
Successful Response
Response model for Git-like full-state push operations.
ID of the created commit
Node ID that was updated
Branch that was updated
Commit message
Number of new objects created
Number of existing objects reused
Previous commit ID on this branch
Mapping from temp connection IDs to real UUIDs
Show child attributes