Commands › Appearance & animation
set_outfit
Replace the whole outfit with a list of items
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "set_outfit",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"items": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
itemsstring | no | Item UUIDs separated by commas or spaces. Also accepted as: uuids |
outfitJSON | no | Alternative to items: {"items":[{"inventoryUUID":"…"}]} — e.g. the outfit from get_outfit. |
Example response
{
"result": "OK",
"action": "set_outfit",
"resulttext": "Successfully attached 1 of 1 items",
"attached": [
{
"uuid": "5d2d7a1d-0e8e-4f5d-a678-000000000000",
"name": "Red Jacket"
}
],
"failed": []
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Send items or outfit. Body parts (shape, skin, hair, eyes) and RLV-locked items stay on.
- Invalid outfit JSON is ignored rather than rejected.