Commands › Inventory
notecard_create
Create a notecard
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "notecard_create",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"name": "Welcome",
"text": "Welcome to our store!",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
namestring | yes | Notecard name. |
textstring | yes | Notecard text. |
descriptionstring | no | Item description. |
folderUUID | no | Folder to create it in. Default: Notecards. Also accepted as: folderUuid |
copyflag | no | Next owner may copy (1 or 0). Default: 1 |
modifyflag | no | Next owner may modify. Default: 1 |
transferflag | no | Next owner may transfer. Default: 1 |
Example response
{
"result": "OK",
"uuid": "5d2d7a1d-0e8e-4f5d-a678-000000000000"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- copy=0 together with transfer=0 is not allowed.
- For the permission flags, only 1 or true count as yes.