Programmatically change watch settings

Is there a way to programmatically change watch settings (enable/disable HR sensor, enable/disable activity tracking) from a widget?

Thanks,

Radko