Commands › Avatars & friends
cancel_friendship
End a friendship
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "cancel_friendship",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"target": "a2e76fcd-9360-4f6d-a924-000000000000",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
targetstring | yes | Avatar UUID or name. Also accepted as: avatar, agent, slname, slkey |
nosafehubflag | no | Send 1 to refuse the command while the bot is in a Safe Hub region. |
Example response
{
"result": "OK"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Answers OK even if the avatar was not a friend.