POST /api/users/:user_id/relationship/
Change following relationship to another user. user_id
follows the same pattern as GET /api/users/:user_id/
except self
isn't allowed (user can't follow themselves)
This call requires authentication.
- None
Request must contain valid JSON data with following values:
action
follow
unfollow
E.g.
{"action": "follow"}
Response return follow relationship as boolean. See GET /api/users/:user_id/relationship/
400
- User can't follow him/herself404
- User not found
Request
POST /api/users/3/relationship/
{"action": "follow"}
Return
{
following: true
}