Create Foundry Entity
foundry_create_entityCreate new Foundry VTT entities (Actor, Item, JournalEntry, etc.) by providing raw document data. Returns the new entity UUID and full document.
Instructions
Create a new Foundry entity (Actor, Item, JournalEntry, etc.) with a raw Foundry document. Returns the new entity UUID and document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Raw Foundry document for this entityType (name, type, system, items, etc.) | |
| folder | No | UUID of folder to file the entity in | |
| keepId | No | Keep the supplied _id | |
| userId | No | Override the default userId. Omit for GM-level access. | |
| clientId | No | Override the default clientId (which connected world to target) | |
| override | No | Override an existing entity with the same _id | |
| entityType | Yes | Foundry document class, e.g. Actor or JournalEntry |