Updates the nickname associated with a relationship (friend or blocked user). Nicknames are personal labels that override the user’s display name in the current user’s view. Returns updated relationship object.
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"
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The ID of the user
Custom nickname for this friend (max 256 characters)
Success
The unique identifier for the relationship
The type of relationship (friend, blocked, pending, etc.)
1, 2, 3, 4 Show child attributes
A custom nickname set for the related user
ISO8601 timestamp of when the relationship was established
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"
}