Skip to content

Modify a version

PATCH
/version/{id}

Authorizations

Parameters

Path Parameters

id
required
string
[
"IIJJKKLL"
]

The ID of the version

Request Body

Modified version fields

object
name

The name of this version

string
Version 1.0.0
version_number

The version number. Ideally will follow semantic versioning

string
1.0.0
changelog

The changelog for this version

string
nullable
List of changes in this version: ...
dependencies

A list of specific versions of projects that this version depends on

Array<object>
object
version_id

The ID of the version that this version depends on

string
nullable
IIJJKKLL
project_id

The ID of the project that this version depends on

string
nullable
QQRRSSTT
file_name

The file name of the dependency, mostly used for showing external dependencies on modpacks

string
nullable
sodium-fabric-mc1.19-0.4.2+build.16.jar
dependency_type
required

The type of dependency that this version has

string
Allowed values: required optional incompatible embedded
required
game_versions

A list of versions of Minecraft that this version supports

Array<string>
[
"1.16.5",
"1.17.1"
]
version_type

The release channel for this version

string
Allowed values: release beta alpha
release
loaders

The mod loaders that this version supports

Array<string>
[
"fabric",
"forge"
]
featured

Whether the version is featured or not

boolean
true
status
string
Allowed values: listed archived draft unlisted scheduled unknown
listed
requested_status
string
nullable
Allowed values: listed archived draft unlisted
primary_file

The hash format and the hash of the new primary file

Array<string>
[
"sha1",
"aaaabbbbccccddddeeeeffffgggghhhhiiiijjjj"
]
file_types

A list of file_types to edit

Array<object>
object
algorithm
required

The hash algorithm of the hash specified in the hash field

string
sha1
hash
required

The hash of the file you’re editing

string
aaaabbbbccccddddeeeeffffgggghhhhiiiijjjj
file_type
required

The hash algorithm of the file you’re editing

string
nullable
Allowed values: required-resource-pack optional-resource-pack
required-resource-pack

Responses

204

Expected response to a valid request

401

Incorrect token scopes or no authorization to access the requested item(s)

object
error
required

The name of the error

string
unauthorized
description
required

The contents of the error

string
Authentication Error: Invalid Authentication Credentials

404

The requested item(s) were not found or no authorization to access the requested item(s)