POST user/{userId}/friend/{friendUserId}/message

Send a message to a friend.

Example

POST /api/v1/user/66a5db1f-2785-498d-9068-e24ddbba03f2/friend/adf67d5b-ad2c-4f1c-adb3-7f0500f0e07e/message HTTP/1.1
Authorization: Bearer ...
Content-Type: application/json

{
  "text": "hey"
}
----------------------------------------
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 sending the message, as a GUID with dashesstring
friendUserIdthe ID of the user receiving the message, as a GUID with dashesstring

Request Body

NameDescriptionValue
textthe message to sendstring

Response

Successful responses are code 204. Error responses are standard.

Response Body

NONE