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


When I try to add a friendship between two accounts:
post {“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?


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: