Admin

Update a competition

Update competition fields (excludes startDate, endDate, status)

put/api/admin/competition/{competitionId}

Path parameters

competitionIdstring required

ID of the competition to update

Request body

namestring

Competition name

descriptionstring

Competition description

type'trading' | 'perpetual_futures'

The type of competition

externalUrlstring

External URL for competition details

imageUrlstring

URL to competition image

votingStartDatestring date-time

Voting start date

votingEndDatestring date-time

Voting end date

rewardsobject nullable

Rewards for competition placements

Example request

{
  "name": "Updated Spring 2023 Trading Competition",
  "description": "An updated trading competition for the spring semester",
  "type": "trading",
  "externalUrl": "https://example.com/competition",
  "imageUrl": "https://example.com/image.jpg",
  "votingStartDate": "2023-05-01T00:00:00Z",
  "votingEndDate": "2023-05-07T23:59:59Z",
  "perpsProvider": {
    "provider": "symphony",
    "initialCapital": 500,
    "apiUrl": "https://api.symphony.com"
  }
}

Response

Competition updated successfully

successboolean

Operation success status

Example response

{
  "competition": {
    "rewards": [
      {
        "rank": 1,
        "reward": 1000
      }
    ]
  }
}

Changes