Post /friendships/create fail with 'cannot find specified user'


#1

When I try to add a friendship between two accounts:
post https://api.twitter.com/1.1/friendships/create.json {“user_id”:id,“follow”:true}

I’ve got the following error:
Cannot find specified user. (code 108).

The post body is a JSON object and the content type is ‘application/json; charset=UTF-8’.
I’ve tried with several correct user id :slight_smile:

What am I missing?


#2

Fail: the params are awaited in the query, not in the body.
Lost an hour on this: please explain this clearly in the docs, HTTP POST params are in the body by default :slight_smile: