Endpoint POST API Economia
Operazioni sul Negozio
Manage store items and buying/selling.
Available actions:
addItem- add item to store (requires item with name, price_buy, …).removeItem- remove item from store (requires itemName).buy- buy item from store (requires userId, itemName, quantity).sellToStore- sell item to store (requires userId, itemName, quantity).
POST
Autorizzazioni
API key for accessing CivOps endpoints.
Passed in the Authorization: Bearer <key> header.
REQUIRED FOR ALL CIVOPS ENDPOINTS (except /health).
Parametri della query
Operation type.
Opzioni disponibili:
addItem, removeItem, buy, sellToStore Corpo
application/json
The body is of type object.
Risposta
Operation successfully completed.
The response is of type object.