Merge an approved changeset

POST /Platform/entities/changesets/{changeset_id}/merge

Merge an approved changeset. Executes the reviewed merge.

Merges using the FROZEN plan and resolutions — what merges is exactly what was approved. Always all-or-nothing at the plan level (partial does not exist here; raw merge-branch keeps it for non-reviewed flows). Refuses on a stale plan (any member's from/to head moved, or the branch's entity set changed since freeze) — refresh and get re-approved instead. Concurrent merges targeting the same branch are mutually excluded.

A mid-write failure leaves the changeset partially_merged with per-member new_commit_id bookkeeping showing exactly what landed; recover via changeset-revert (undoes the written members) or changeset-refresh (re-plan; written members drop out).

On success the feature branch is deleted — the changeset retains the plan, diffs, evidence, and conversation.

Path parameters

Body parameters

Returns

ChangesetResponse

Example request

curl -X POST "https://api.hilus.ai/Platform/entities/changesets/{changeset_id}/merge" \
  -H "Authorization: Bearer $HILUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'