API Reference › Bots — Friends
Edit Friend Rights
PATCH
/bots/{bot_id}/friends/{target}Change what the friend may see and do. Send at least one field.
Usage
curl -X PATCH "https://api.lifebots.cloud/api/v1/bots/$BOT_ID/friends/$TARGET" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"see_online": true,
"see_on_map": false,
"can_edit": false
}'Path parameters
| Name | Type | Description |
|---|---|---|
bot_id | UUID | The bot's avatar UUID (agentId from GET /bots). |
target | UUID | Avatar UUID. |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
see_online | boolean | no | Friend can see when the bot is online. |
see_on_map | boolean | no | Friend can see the bot on the map. |
can_edit | boolean | no | Friend can edit the bot's objects. |
Example response
{
"success": true,
"data": {
"result": "OK"
},
"meta": {
"timestamp": "2026-10-02T12:00:00.000Z",
"version": "1.0"
}
} Always check success; for commands the bot carries out, also check data.result. See Responses & errors.