Skip to content

Add Notes V2

PUT
/friends/v2/player/{player_uuid}/friend/{other_player_uuid}/notes

Update Player’s notes on the other player. Players can only add notes for players they have relationship’s with. The notes will be removed when the relationship is ended.

Permissions Required: friend:friend_list:write

Authorizations

Parameters

Path Parameters

player_uuid
required
string format: uuid
other_player_uuid
required
string format: uuid

Header Parameters

if-match

If you provide the ETag that does not matches the current ETag for this resource, a 412 response will be return - indicating that the resource has changed.

string

If you provide the ETag that does not matches the current ETag for this resource, a 412 response will be return - indicating that the resource has changed.

Request Body required

Notes to set for the Player’s friend. If you don’t want to modify notes, no not include in body when adding a friend.

object
notes
string
>= 1 characters <= 4000 characters

Responses

200

Successful Response

Represents the relationship with a potential friend.

object
friends_player_uuid
required
string format: uuid
status
required
string
Allowed values: NONE FRIENDS FRIEND_REQUEST_SENT FRIEND_REQUEST_PENDING FRIEND_REQUEST_DECLINED_BY_OTHER
notes
string
last_modified_on
required
string format: date-time

Headers

ETag
string

Used to identify this version of the content. Provide with a get request to avoid downloading the same data multiple times.

400

Bad Request

object
auth_success
boolean
default: true
error_code
required
string
desc
required
string

403

Forbidden

object
auth_success
boolean
default: true
error_code
required
string
desc
required
string

409

Conflict

object
auth_success
boolean
default: true
error_code
required
string
desc
required
string

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string