Refresh a changeset after its branch moved
POST /Platform/entities/changesets/{changeset_id}/refresh
Refresh a changeset after its branch moved. Re-plans the SAME changeset (for example after fixes were pushed to the branch).
Recomputes membership / head pairs / diffs, clears any approval, and
keeps the changeset id and event timeline so the review conversation
survives iteration. changes_requested -> open.
Path parameters
changeset_id: str. The changeset to refresh.
Body parameters
resolutions: optional dict. If given, REPLACES the frozen conflict resolutions.test_evidence: optional List[Any]. Fresh test-run references to attach (same shape aschangeset-open).
Returns
ChangesetResponse
changeset: dict. changeset_id, from_branch, to_branch, status, description, author, origin_ref, approver, resolutions, plan, code_ranges (one per repository: repo_id, repo_name, base_sha, head_sha, to_sha, merged_sha), created_at, merged_at, members (entity members and, as RepoFile members, the files each code range changes), events, test_evidence.auto_approve_ignored: optional str or null. Why auto_approve was ignored (main is protected and the caller holds no bypass).
Example request
curl -X POST "https://api.hilus.ai/Platform/entities/changesets/{changeset_id}/refresh" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'