Add Friend V2
PUT/friends/v2/player/:player_uuid/friend/:other_player_uuid
Modify the friend's relationship status with the other Player. There is a max number of friends that can be added for a Player.
The limit can determined using this API. This API allows you optionally update the player's notes for the other player. If you do not want to update or set the notes when adding the other player, then do not include a body.
Note: This API supports etags and will return the etag header when with the response and will match the etag value provided when fetching Friend Relationship between these two players. It is highly recommended to provide the etag value with the if-match header to avoid lost updates.
Permissions Required: friend:friend_list:write
Request
Path Parameters
Header Parameters
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.
- application/json
Body
Possible values: non-empty and <= 4000 characters
Responses
- 200
- 400
- 403
- 409
- 412
- 422
Successful Response
Response Headers
ETag
string
Used to identify this version of the content. Provide with a get request to avoid downloading the same data multiple times.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [NONE, FRIENDS, FRIEND_REQUEST_SENT, FRIEND_REQUEST_PENDING, FRIEND_REQUEST_DECLINED_BY_OTHER]
An enumeration.
{
"friends_player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "NONE",
"notes": "string",
"last_modified_on": "2024-07-29T15:51:28.071Z"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Conflict
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
The resource's Etag does not match the Etag provided. Get the Etag from the Get request and try again
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}