What should I do for update new api?

You are calling GQL.

GQL is not a supported API endpoint

You seem to be trying to follow or unfollow a user

Covers the Helix/supported API calls