CreateTradefromBot

POST /bot/trades

For add a trade from bot

Query parameters

  • discordid string Required

    User Discord ID

  • type string Required

    Type of trade

    Values are Supply or Demand.

  • resource string Required

    Type of resource. Example Aloe

  • amount integer

    Amount of the resource

  • quality integer

    Quality of the resource. Max 100

  • region string Required

    Region of the trade. EU, NA, SA , ASIA, OCE

  • price integer Required

    Price per resource

Responses

  • 201 application/json

    Default Response

    Hide response attribute Show response attribute object
  • 400 application/json

    Bad Request

    Bad Request

  • 401 application/json

    Unauthorized

    Unauthorized

  • 503 application/json

    Service Unavailable

    Service Unavailable

POST /bot/trades
curl \
 --request POST 'http://api.example.com/bot/trades?discordid=string&type=Supply&resource=string&region=string&price=42' \
 --header "apiKey: $API_KEY"
Response examples (201)
{
  "message": "string"
}
Response examples (400)
string
Response examples (401)
string
Response examples (503)
string