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
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"
}Response
Competition updated successfully
Example response
{
"competition": {
"rewards": [
{
"rank": 1,
"reward": 1000
}
]
}
}