Commands › Avatars & friends
edit_friendship
Set what a friend may see and do
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "edit_friendship",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"slkey": "a2e76fcd-9360-4f6d-a924-000000000000",
"see_online": "1",
"see_on_map": "0",
"can_edit": "0",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
slkeyUUID | yes | Friend's UUID (names are not accepted). Also accepted as: target |
see_onlineflag | no | 1 to let them see when the bot is online. |
see_on_mapflag | no | 1 to let them see the bot on the map. |
can_editflag | no | 1 to let them edit the bot's objects. |
Example response
{
"result": "OK"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- All three rights are replaced at once. A right you leave out, or send as anything but 1, is taken away. Send at least one.