cURL
curl --request PUT \ --url https://gogs.example.com/api/v1/user/following/{target} \ --header 'Authorization: <api-key>'
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Target username
Successfully followed the user.