Revert a merged changeset

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

Revert a merged changeset. Undoes a merged (or partially merged) changeset, recorded as a NEW changeset.

Members that existed on the target branch before the merge are restored to their prior head (a new restore commit — never history rewriting); members that were NEW to the target branch have their branch pointer removed (commits stay in the entity table; nothing is hard-deleted). Only members actually written by the merge are touched.

Refuses if the target branch moved past the changeset's commits (someone edited an entity after the merge) and reports the moved members; force=true overrides for the whole changeset.

Path parameters

Body parameters

Returns

ChangesetResponse

Example request

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