How does the Open interest data affects the stock or index prices?

Open interest data does not affect index.
Index movements affects the open interest.
The index/stock is the underlying, Stock market participants look at the open interest data, to get to a conclusion about the overall sentiment to make a better decision.

“This data indirectly affects the underlying” - This is right I guess.