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
Path Params
Responses
🟢204Response
application/json
Body
🔵304304
🟠401401
🟠403403
🟠404404
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.github.com/user/following/'