Getting 404, error 34 on friendship create api



I am trying to make an API post request to friendship/create using below json:

{ url: '',
  method: 'POST',
   { consumer_key: key,
     consumer_secret: secret,
     token: token,
     token_secret: tokensecret},
  json: { user_id: myid, follow: true } }

but getting a response as below:

{ errors: [ { message: 'Sorry, that page does not exist', code: 34 } ] }

can someone please suggest what is needed to be corrected here. Any lead would be highly appreciated.