Use API to set content view and environment for a single host