Adding Director rule for api

This is no longer in core, so we need it