cURL
curl --request PUT \ --url https://serengo.zias.be/api/friends/{friendshipId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "action": "accept" } '
{ "id": "<string>", "requesterId": "<string>", "addresseeId": "<string>", "status": "pending", "requester": { "id": "<string>", "username": "<string>", "profilePicture": "<string>" }, "addressee": { "id": "<string>", "username": "<string>", "profilePicture": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
accept
decline
block
Friendship updated
pending
accepted
blocked
Show child attributes