Restore an entity to an earlier commit

POST /Platform/entities/{entity_type}/{entity_id}/restore

Restore an entity to an earlier commit.

Loads the entity at commit_id directly from the database (bypassing the branch HEAD) and re-stores it as a new HEAD commit on branch. This creates an auditable restore event rather than rewriting history.

Path parameters

Body parameters

Returns

EntityPutResponse

Example request

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