Skip to main content
PATCH
/
users
/
@me
/
relationships
/
{user_id}
Update relationship nickname
curl --request PATCH \
  --url https://api.fluxer.app/v1/users/@me/relationships/{user_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "nickname": "<string>"
}
'
{
  "id": "<string>",
  "type": 1,
  "user": {
    "id": "<string>",
    "username": "<string>",
    "discriminator": "<string>",
    "global_name": "<string>",
    "avatar": "<string>",
    "avatar_color": 1073741823,
    "flags": 1073741823,
    "bot": true,
    "system": true
  },
  "nickname": "<string>",
  "since": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Path Parameters

user_id
string<snowflake>
required

The ID of the user

Body

application/json
nickname
string | null
required

Custom nickname for this friend (max 256 characters)

Response

Success

id
string
required

The unique identifier for the relationship

type
enum<integer>
required

The type of relationship (friend, blocked, pending, etc.)

Available options:
1,
2,
3,
4
user
object
required
nickname
string | null
required

A custom nickname set for the related user

since
string<date-time>

ISO8601 timestamp of when the relationship was established