POST
/
v1
/
contests
curl --request POST \
  --url https://backend.swap.coffee/v1/contests \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<string>",
  "description": "<string>",
  "references": [
    {
      "ref_name": "<string>",
      "ref_url": "<string>"
    }
  ],
  "conditions": [
    {
      "type": "unique",
      "args": [
        "<string>"
      ]
    }
  ],
  "rewards": [
    {
      "reward": "<string>",
      "place": 123,
      "place_from": 123,
      "place_to": 123
    }
  ],
  "start_time_unix": 123,
  "end_time_unix": 123,
  "image_url": "<string>",
  "total_reward": "<string>",
  "hidden": true
}'
{
  "id": 123,
  "info": {
    "title": "<string>",
    "description": "<string>",
    "references": [
      {
        "ref_name": "<string>",
        "ref_url": "<string>"
      }
    ],
    "conditions": [
      {
        "type": "unique",
        "args": [
          "<string>"
        ]
      }
    ],
    "rewards": [
      {
        "reward": "<string>",
        "place": 123,
        "place_from": 123,
        "place_to": 123
      }
    ],
    "start_time_unix": 123,
    "end_time_unix": 123,
    "image_url": "<string>",
    "total_reward": "<string>",
    "hidden": true
  }
}

Authorizations

X-Api-Key
string
header
required

Body

application/json

Response

200
application/json

Created contest information with id

The response is of type object.