Endpoint POST API Economia
Operazioni sull'Economia
Perform operations with the economy system (transactions, transfers, etc.).
Available actions:
transfer- transfer between users (requires fromUserId, toUserId, amount).deposit- deposit money to bank (requires userId, amount).withdraw- withdraw money from bank (requires userId, amount).add- add money to user (requires userId, amount, type).remove- remove money from user (requires userId, amount, type).reset- reset user balance (requires userId).resetCooldown- reset user cooldowns (requires userId, command).
The type parameter for add/remove can be ‘cash’ or ‘bank’ (default ‘cash’).
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:
transfer, deposit, withdraw, add, remove, reset, resetCooldown Corpo
application/json
The body is of type object.
Risposta
Operation successfully completed.
The response is of type object.