Endpoints POST de la API de Economía
Operaciones de la Tienda
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
Autorizaciones
API key for accessing CivOps endpoints.
Passed in the Authorization: Bearer <key> header.
REQUIRED FOR ALL CIVOPS ENDPOINTS (except /health).
Parámetros de consulta
Operation type.
Opciones disponibles:
addItem, removeItem, buy, sellToStore Cuerpo
application/json
The body is of type object.
Respuesta
Operation successfully completed.
The response is of type object.