Skip to content

Delete Friend V2

DELETE
/friends/v2/player/{player_uuid}/friend/{other_player_uuid}

Remove the friend’s relationship status with the other Player. This should be used for declining Friend requests, deleting sent Friends Requests, and deleting Friends

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](#/Friends V1/get_friend_relationship). It is highly recommended to provide the etag value with the if-match header to avoid lost updates.

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.

Responses

204

Successful 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.

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

412

The resource’s Etag does not match the Etag provided. Get the Etag from the Get request and try again

422

Validation Error

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