users

Follow a user

Note that you'll need to set Content-Length to zero when calling out to this endpoint. For more information, see "HTTP verbs."

OAuth app tokens and personal access tokens (classic) need the user:follow scope to use this endpoint.

put/user/following/{username}

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/user/following/{username}
  • Auth: none declared

Path parameters

usernamestring required

The handle for the GitHub user account.

Response

Response

Changes

No recorded changes to this operation across all 23 revisions of this API.