Follow User
POST
/2/users/{id}/followingCauses the user(in the path) to follow, or “request to follow” for protected users, the target user. The user(in the path) must match the user context authorizing the request
Request
Path Params
id
string
required
The ID of the user that is requesting to follow the target user
Body Params application/json
target_user_id
string
required
Match pattern:
^[0-9]{1,19}$
Example
{
"target_user_id": "string"
}
Request samples
Responses
The request was successful(200)
500(500)
The request was successful
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: 2 years ago