Path parameters
-
username
string Required Username of the profile you want to follow
PUT
/profiles/{username}/follow
curl \
--request PUT '/api/profiles/{username}/follow' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"profile": {
"bio": "I work at State Farm.",
"image": "https://api.realworld.io/images/smiley-cyrus.jpg",
"username": "jake",
"following": false
}
}
Response examples (422)
{
"errors": {
"body": [
"string"
]
}
}