Note that you'll need to set Content-Length to zero when calling out to this endpoint. For more information, see "HTTP verbs."Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.github.com/user/following/'