Economy API POST Endpoints
Store Operations
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
Authorizations
API key for accessing CivOps endpoints.
Passed in the Authorization: Bearer <key> header.
REQUIRED FOR ALL CIVOPS ENDPOINTS (except /health).
Query Parameters
Operation type.
Available options:
addItem, removeItem, buy, sellToStore Body
application/json
The body is of type object.
Response
Operation successfully completed.
The response is of type object.