Here it is in a nutshell. First, the link to the unity scripting API:
https://docs.unity3d.com/ScriptReference/LineRenderer.SetPosition.htmlor, you can click the small book with "?" in the component in inspector which will open unity documentation on LineRenderer. Here is what it looks like:
By clicking Switch to Scripting, you switch to scripting API with properties, methods etc.
You will find the SetPosition method there, and by clicking on it you will see the following:
LineRenderer is the name of the class, so you enter that in the class name (or UnityEngine.LineRenderer, whichever you prefer). Method is SetPosition, and below you can enter the parameters, in your case int (which position to set) and vector3 (new position to set). In the end, it should look like this.
Sorry, invoking method was not the right solution since it needs arguments, so use call method.