Create a version
POST /version
This route creates a version on an existing project. There must be at least one file attached to each new version, unless the new version’s status is draft. .mrpack, .jar, .zip, and .litemod files are accepted.
The request is a multipart request with at least two form fields: one is data, which includes a JSON body with the version metadata as shown below, and at least one field containing an upload file.
You can name the file parts anything you would like, but you must list each of the parts’ names in file_parts, and optionally, provide one to use as the primary file in primary_file.
Authorizations
Request Body
New version
object
object
The name of this version
Version 1.0.0The version number. Ideally will follow semantic versioning
1.0.0The 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
IIJJKKLLThe ID of the project that this version depends on
QQRRSSTTThe file name of the dependency, mostly used for showing external dependencies on modpacks
sodium-fabric-mc1.19-0.4.2+build.16.jarThe type of dependency that this version has
requiredA list of versions of Minecraft that this version supports
[ "1.16.5", "1.17.1"]The release channel for this version
releaseThe mod loaders that this version supports. In case of resource packs, use “minecraft”
[ "fabric", "forge", "minecraft"]Whether the version is featured or not
truelistedThe ID of the project this version is for
AABBCCDDAn array of the multipart field names of each file that goes with this version
The multipart field name of the primary file
Responses
200
Expected response to a valid request
object
The name of this version
Version 1.0.0The version number. Ideally will follow semantic versioning
1.0.0The 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
IIJJKKLLThe ID of the project that this version depends on
QQRRSSTTThe file name of the dependency, mostly used for showing external dependencies on modpacks
sodium-fabric-mc1.19-0.4.2+build.16.jarThe type of dependency that this version has
requiredA list of versions of Minecraft that this version supports
[ "1.16.5", "1.17.1"]The release channel for this version
releaseThe mod loaders that this version supports. In case of resource packs, use “minecraft”
[ "fabric", "forge", "minecraft"]Whether the version is featured or not
truelistedThe ID of the version, encoded as a base62 string
IIJJKKLLThe ID of the project this version is for
AABBCCDDThe ID of the author who published this version
EEFFGGHHThe 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
93ecf5fe02914fb53d94aa3d28c1fb562e23985f8e4d48b9038422798618761fe208a31ca9b723667a4e05de0d91a3f86bcd8d018f6a686c39550e21b198d96fc84dd4b3580c02b79958a0590afd5783d80ef504A direct link to the file
https://cdn.modrinth.com/data/AABBCCDD/versions/1.0.0/my_file.jarThe name of the file
my_file.jarWhether 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
1097270The type of the additional file, used mainly for adding resource packs to datapacks
required-resource-pack400
Request was invalid, see given error
object
The name of the error
invalid_inputThe contents of the error
Error while parsing multipart payload401
Incorrect token scopes or no authorization to access the requested item(s)
object
The name of the error
unauthorizedThe contents of the error
Authentication Error: Invalid Authentication Credentials