Hi,
Not with a cmdrule, but with a normal data rule.
<rule>
...
<context xmlns="http://tail-f.com/yang/acm">rest</context>
...
</rule>
No “display-when” statement specifically for RESTCONF. Unlike the CLI and WebUI/JSON-RPC interfaces, RESTCONF, and NETCONF, are machine to machine interfaces, so “hiding” data is generally not something you want to do with them.