---
# System prepended metadata

title: Tormenta Palace Entity Sandbox

---

# Tormenta Palace Entity Sandbox

```jsonld

{
    race: {
        id: 1,
        abilities: [
            [
                { values: 1 },
            ],
        ],
    },
}

{
    compras: [
        {itemId: 'coe23432'},
        {itemId: 'coe23432'},
        {itemId: 'coe23432'},
        {itemId: 'coe23432'},
        {itemId: 'coe23432'},
        {itemId: 'coe23432'},
    ]
}



// Sheet
{
    race: {
        id: 'lefou',
        abilities: [
            {
                title: '',
                desc: '',
                controls: [
                    {
                        options: {
                            tags: ['atributos'],
                        },
                        quantity: 1,
                        values: []
                    },
                ],
            },
            {
                title: 'versatil',
                controls: [
                    {
                        values: ['1p1p']
                    },
                    {
                        quantity: 1,
                        options: [ 
                            { 
                                display: 'Poder 1', value: 'poder1' 
                            },
                        ],
                        values: ['poder1'],
                    },
                ]
            },
            
            //...
        ],
        powers: [
            {
                
            },
        ]
    },
    class: {
        id: 'arcanista',
        abilities: [
            {
            }
        ],
        powers: [
            //...
        ]
    },
}    
```

```jsonld
// api.updateSheet
{
    race: {
        id: 'humano',
        abilities: [
            { versatil: 'p2', pergunta: 'qual poder que cê quer?' }
        ],
        powers: [
            {
                mestre: '?',
                pergunte: 'qual arma?',
            }
        ],
    }
}
```


```jsonld
// api.search
/// input
{
    tag: ['items', 'weapon'],
    query: 'espa',
    maxItems: 20,
    
    sheet: 'id|{}',
}
/// output
{
    items: [
        {
            id: '',
            name: '',
            type: '',
            stackable: true,
            weight: 1,
            price: 100,
        }
    ]
}
```