Latest version of a project from a hash, loader(s), and game version(s)
POST /version_file/{hash}/update
Parameters
Path Parameters
619e250c133106bacc3e3b560839bd4b324dfda8
The hash of the file, considering its byte content, and encoded in hexadecimal
Query Parameters
sha512
The algorithm of the hash
Request Body
Parameters of the updated version requested
object
[ "1.18", "1.18.1"]
Responses
200
Expected response to a valid request
object
The name of this version
Version 1.0.0
The version number. Ideally will follow semantic versioning
1.0.0
The changelog for this version
List of changes in this version: ...
A list of specific versions of projects that this version depends on
object
The ID of the version that this version depends on
IIJJKKLL
The ID of the project that this version depends on
QQRRSSTT
The file name of the dependency, mostly used for showing external dependencies on modpacks
sodium-fabric-mc1.19-0.4.2+build.16.jar
The type of dependency that this version has
required
A list of versions of Minecraft that this version supports
[ "1.16.5", "1.17.1"]
The release channel for this version
release
The mod loaders that this version supports. In case of resource packs, use “minecraft”
[ "fabric", "forge", "minecraft"]
Whether the version is featured or not
true
listed
The ID of the version, encoded as a base62 string
IIJJKKLL
The ID of the project this version is for
AABBCCDD
The ID of the author who published this version
EEFFGGHH
The number of times this version has been downloaded
A link to the changelog for this version. Always null, only kept for legacy compatibility.
A list of files available for download for this version
object
A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash.
object
93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96f
c84dd4b3580c02b79958a0590afd5783d80ef504
A direct link to the file
https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jar
The name of the file
my_file.jar
Whether this file is the primary one for its version. Only a maximum of one file per version will have this set to true. If there are not any primary files, it can be inferred that the first file is the primary one.
The size of the file in bytes
1097270
The type of the additional file, used mainly for adding resource packs to datapacks
required-resource-pack
400
Request was invalid, see given error
404
The requested item(s) were not found or no authorization to access the requested item(s)