set_endpoint function

Set SB endpoint