---
title: "Latest versions of multiple projects from hashes, loader(s), and game version(s)"
method: POST
path: "/version_files/update"
tags: ["version-files"]
---

# Latest versions of multiple projects from hashes, loader(s), and game version(s)

`POST /version_files/update`

This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it accepts multiple hashes.

## Request body

- GetLatestVersionsFromHashesBody — A list of hashes and the algorithm used to create them
  - `hashes` string[], required
  - `algorithm` 'sha1' | 'sha512', required
  - `loaders` string[], required
  - `game_versions` string[], required
  - `version_types` string[]

## Response `200`

Expected response to a valid request

- HashVersionMap — A map from hashes to versions

## Other responses

- `400` — Request was invalid, see given error

## Changes

- **2026-08-10** `16bb5dbc54f4` — 1 info
  - added the required property `additionalProperties/allOf[subschema #2]/environment` to the response with the `200` status
- **2026-08-02** `439f357e772d` — 1 info
  - added the new optional request property `allOf[subschema #2]/version_types`
- **2025-12-19** `0bffa67217e1` — 1 breaking, 3 info
  - the `additionalProperties/allOf[subschema #2]/files/items/file_type` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - added `#/components/schemas/FileTypeEnum, subschema #2` to the `additionalProperties/allOf[subschema #2]/files/items/file_type` response property `allOf` list for the response status `200`
  - removed the `optional-resource-pack` enum value from the `additionalProperties/allOf[subschema #2]/files/items/file_type` response property for the response status `200`
  - removed the `required-resource-pack` enum value from the `additionalProperties/allOf[subschema #2]/files/items/file_type` response property for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/modrinth/apis/labrinth/changes/version_files/update/post.md)

---

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