---
title: "Modify a version"
method: PATCH
path: "/version/{id}"
tags: ["versions"]
---

# Modify a version

`PATCH /version/{id}`

## Request body

- EditableVersion
  - `name` string — The name of this version
  - `version_number` string — The version number. Ideally will follow semantic versioning
  - `changelog` string, nullable — The changelog for this version
  - `dependencies` VersionDependency[] — A list of specific versions of projects that this version depends on
    - `version_id` string, nullable — The ID of the version that this version depends on
    - `project_id` string, nullable — The ID of the project that this version depends on
    - `file_name` string, nullable — The file name of the dependency, mostly used for showing external dependencies on modpacks
    - `dependency_type` 'required' | 'optional' | 'incompatible' | 'embedded', required — The type of dependency that this version has
  - `game_versions` string[] — A list of versions of Minecraft that this version supports
  - `version_type` 'release' | 'beta' | 'alpha' — The release channel for this version
  - `loaders` string[] — The mod loaders that this version supports. In case of resource packs, use "minecraft"
  - `featured` boolean — Whether the version is featured or not
  - `status` 'listed' | 'archived' | 'draft' | 'unlisted' | 'scheduled' | 'unknown'
  - `requested_status` 'listed' | 'archived' | 'draft' | 'unlisted', nullable
  - `primary_file` string[] — The hash format and the hash of the new primary file
  - `file_types` EditableFileType[] — A list of file_types to edit
    - `algorithm` string, required — The hash algorithm of the hash specified in the hash field
    - `hash` string, required — The hash of the file you're editing
    - `file_type` 'required-resource-pack' | 'optional-resource-pack' | 'sources-jar' | 'dev-jar' | 'javadoc-jar' | 'unknown' | 'signature', nullable, required — The hash algorithm of the file you're editing

## Response `204`

Expected response to a valid request

## Other responses

- `401` — Incorrect token scopes or no authorization to access the requested item(s)
- `404` — The requested item(s) were not found or no authorization to access the requested item(s)

---

[API](https://skmtc.net/modrinth/apis/labrinth.md) · [All operations](https://skmtc.net/modrinth/apis/labrinth/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modrinth/labrinth/revisions/16bb5dbc54f4/schema)
