- There is no need to ping me in a reply, since the reply does that anyway.
As per the documentation https://dev.twitch.tv/docs/api/reference#create-user-follows
from_id
and to_id
are query string parameters
So its
https://api.twitch.tv/helix/users/follows?from_id=xyz&to_id=abc
or JSON as the example shows
curl -X POST 'https://api.twitch.tv/helix/users/follows' \
-H 'Authorization: Bearer 2gbdx6oar67tqtcmt49t3wpcgycthx' \
-H 'Client-Id: wbmytr93xzw8zbg0p1izqyzzc5mbiz' \
-H 'Content-Type: application/json' \
--data-raw '{"to_id": "41245072","from_id": "57059344"}'