API Reference › Bots — Notecards & Scripts
Edit or Rename Notecard
PATCH
/bots/{bot_id}/notecards/{item_id}Replace a notecard's text, rename it, or both. Send at least one field.
Usage
curl -X PATCH "https://api.lifebots.cloud/api/v1/bots/$BOT_ID/notecards/$ITEM_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "Updated text"
}'Path parameters
| Name | Type | Description |
|---|---|---|
bot_id | UUID | The bot's avatar UUID (agentId from GET /bots). |
item_id | UUID | Inventory item UUID. |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
text | string | no | New contents. Replaces the whole notecard. |
name | string | no | New name. |
Example response
{
"success": true,
"data": {
"result": "OK"
},
"meta": {
"timestamp": "2026-10-02T12:00:00.000Z",
"version": "1.0"
}
}data holds an edit and/or rename result, one per change made.
Always check success; for commands the bot carries out, also check data.result. See Responses & errors.