Skip to:

Opened 9 months ago

Closed 2 months ago

#8982 closed enhancement (fixed)

Friendship requests via API

Reported by: mattiagrispo's profile mattiagrispo Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: REST API Keywords:


Hi I'm developing an app in flutter where I managed to send the friend request from user A to user B, but I don't understand the logic to apply to accept the request. At the moment I was thinking of using the /buddypress/v1/friends/$requestId endpoint to return the request id and change is_confirmed from 0 to 1. but it doesn't work

Change History (4)

#2 in reply to: ↑ 1 @mattiagrispo
9 months ago

Replying to imath:

Hi there’s a specific endpoint about it, have you looked at ?

yes I had seen it, but after retrieving the user id and sending it via put method to the rest api, it doesn't allow me to accept the request. The response body says: bp_rest_invalid_id, status 404

Last edited 9 months ago by mattiagrispo (previous) (diff)

#3 @espellcaste
9 months ago

@mattiagrispo This error indicates there is no friendship request between those users.

#4 @espellcaste
2 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to fixed
  • Status changed from new to closed

Closing this ticket as invalid.

Note: See TracTickets for help on using tickets.