POST user/{userId}/friend/{friendUserId}/request/accept

Accept a friend request.

Note: the call to accept a friend request has the user IDs swapped when compared to the call that created the friend request.

Example

POST /api/v1/user/adf67d5b-ad2c-4f1c-adb3-7f0500f0e07e/friend/66a5db1f-2785-498d-9068-e24ddbba03f2/request/accept HTTP/1.1
Authorization: Bearer ...
----------------------------------------
HTTP/1.1 204 No Content
ETag: W/"a-bAsFyilMr4Ra1hIU5PyoyFRunpI"

Security

Authentication is required, and access is restricted to the user.

URL Parameters

NameDescriptionValue
userIdthe ID of the user accepting the friend request, as a GUID with dashesstring
friendUserIdthe ID of the user that issued the friend request, as a GUID with dashesstring

Request Body

NONE

Response

Successful responses are code 204. Error responses are standard.

Response Body

NONE