Set the instance for the API