Should be `setEndpoint`