MediaWiki:Apihelp-wbsetreference-param-index/en

The index within the statement's list of references where to move the reference to. Optional. When not provided, an existing reference will stay in place while a new reference will be appended.