Opened 13 months ago
Closed 6 months ago
#8982 closed enhancement (fixed)
Friendship requests via API
Reported by: | mattiagrispo | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | REST API | Keywords: | |
Cc: |
Description
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
@
13 months ago
Replying to imath:
Hi there’s a specific endpoint about it, have you looked at https://developer.buddypress.org/bp-rest-api/reference/friends/#let-the-logged-in-member-accept-a-friendship ?
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
Hi there’s a specific endpoint about it, have you looked at https://developer.buddypress.org/bp-rest-api/reference/friends/#let-the-logged-in-member-accept-a-friendship ?