Speedrun.com API Edit Submitted Runs
5 months ago
United States

Hello, I have a use where I would like to edit a mass amount of runs using the speedrun.com REST API.

I am a moderator of the game I would like to edit runs for. I would like to be able to update the time of all the runs as we are looking at changing the timing system. Rather than manually using the UI to update thousands of runs I was looking for a solution that could be scripted. It appears that the only supported editable field of a run is the verified status when using the API.

A potential solution is as follows:

  • make request to get all runs
  • for each run: copy into new submission with updated time and then reject old run

The downside of this approach is that the submitted date history would be lost and all the runners would be spammed with a mass amount of notifications. This does not seem like a viable approach for those reasons.

Is there another way to do this, or would it be possible to add run editing support to the API?

Thanks!

Edited by the author 5 months ago
United States

PS: It seems silly that when submitting a run with the API you need to provide a value for every variable that is in the game even when it doesn't apply to the category/level combination you are submitting for.

Example:

The run submitted through the API only asks for the Competitive Level Type, but when submitting to the same Level / Category in the API you need to specify all the variables for the entire game. This allows you to submit to subcategories that don't even exist by using the API.