Change who may access an entity

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

Change who may access an entity. ACL changes are main-only.

Every action writes an audit commit and rewrites the ACL across all of the entity's existing rows on every branch, so restricting an entity also un-publishes its earlier commits.

Referential integrity is enforced fail-loud in both directions and there is no force: widening is refused while a referenced child is not readable by the new readers, and restricting is refused while a referencing parent's readers would lose access. The error names the blockers — widen the children, or detach/tighten the parents, first.

Path parameters

Body parameters

Returns

EntityAclResponse

Example request

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