Skip to main content
POST
/
view-filter
/
set
set visibility rules on an observer entity
curl --request POST \
  --url http://localhost:3917/view-filter/set \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity_id": 5,
  "rules": [
    "within:8",
    "same-team"
  ]
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Observer entity id and a list of visibility-rule strings (e.g. within:8, same-team). Empty rules means see-all.

The body is of type any.

Response

200 - application/json

View filter applied to the observer entity.

ok
boolean
required
message
string | null