Builds¶
Publication validates the build's recorded metadata and mod assignments, including
MD5 format, safe package identifiers, nonnegative sizes when supplied, and one
version per mod. These checks also apply when editing published builds and cloning
published builds. Invalid changes return 422 without changing the build.
Empty builds are allowed for vanilla installations. Solder does not contact the
external repository during publication; passing validation does not guarantee
that archives are available or unchanged.
POST /api/modpack/{slug}/build¶
Create a new build for a modpack.
Permission required: modpacks_manage + access to the modpack
Path Parameters¶
| Parameter | Type | Description |
|---|---|---|
slug |
string | The modpack slug. |
Request Body¶
| Field | Type | Required | Description |
|---|---|---|---|
version |
string | Yes | Build version string (e.g. 1.0.0). Must be unique within the modpack. |
minecraft |
string | Yes | Minecraft version (e.g. 1.20.1). |
forge |
string | No | Forge version string. |
is_published |
boolean | No | Whether the build is visible in the API. Defaults to false. |
private |
boolean | No | Restrict to authorized clients. Defaults to false. |
min_java |
string | No | Minimum Java version (e.g. 17). |
java_runtime |
string or null | No | Mojang runtime component override (e.g. java-runtime-delta). Defaults to no override. See supported components and launcher behavior. |
min_memory |
integer | No | Minimum memory in MB (e.g. 2048). |
clone_from |
string | No | Version string of an existing build. All mod assignments from the source build will be copied to the new build. Defaults to searching the current modpack unless clone_from_modpack is specified. |
clone_from_modpack |
string | No | Slug of the modpack containing the source build. Use with clone_from to clone from a different modpack. |
Example Request¶
curl -X POST https://solder.example.com/api/modpack/hexxit/build \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"version": "1.0.0",
"minecraft": "1.20.1",
"forge": "47.2.0",
"is_published": true,
"min_java": "17",
"java_runtime": "java-runtime-gamma",
"min_memory": 2048
}'
Response (201)¶
{
"id": 1,
"modpack_id": 1,
"version": "1.0.0",
"minecraft": "1.20.1",
"forge": "47.2.0",
"is_published": true,
"private": false,
"min_java": "17",
"java_runtime": "java-runtime-gamma",
"min_memory": 2048,
"created_at": "2026-03-31T12:00:00.000000Z",
"updated_at": "2026-03-31T12:00:00.000000Z"
}
Cloning Mods from Another Build¶
Use the clone_from parameter to copy all mod assignments from an existing build. This is useful when creating a new version that starts with the same mod list.
Only mod assignments are copied: the new build uses its own java_runtime
input, or no override if omitted. Cloning an entire modpack instead preserves
each build's runtime override.
curl -X POST https://solder.example.com/api/modpack/hexxit/build \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"version": "1.0.1",
"minecraft": "1.20.1",
"clone_from": "1.0.0"
}'
To clone from a build in a different modpack, include clone_from_modpack:
curl -X POST https://solder.yourdomain.com/api/modpack/tekkit/build \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"version": "1.0.0",
"minecraft": "1.20.1",
"clone_from": "1.0.0",
"clone_from_modpack": "hexxit"
}'
If the clone source build or modpack is not found, the request returns a 404 error. If the user does not have permission to access the source modpack, it returns 403. The build is not created on failure.
Error Responses¶
Modpack not found (404):
Duplicate version (422):
Validation error (422):
{
"error": {
"version": ["The version field is required."],
"minecraft": ["The minecraft field is required."]
}
}
PUT /api/modpack/{slug}/{version}¶
Update an existing build.
Permission required: modpacks_manage + access to the modpack
Path Parameters¶
| Parameter | Type | Description |
|---|---|---|
slug |
string | The modpack slug. |
version |
string | The current build version string. |
Request Body¶
All fields are optional. Only included fields are updated.
| Field | Type | Description |
|---|---|---|
version |
string | Build version string. |
minecraft |
string | Minecraft version. |
forge |
string | Forge version. |
is_published |
boolean | Whether the build is visible in the API. |
private |
boolean | Restrict to authorized clients. |
min_java |
string | Minimum Java version. |
java_runtime |
string or null | Mojang runtime component override. Omit to preserve the current value; send null or an empty string to clear it. Unsupported components and non-string values return 422 without updating the build. |
min_memory |
integer | Minimum memory in MB. |
Example Request¶
curl -X PUT https://solder.example.com/api/modpack/hexxit/1.0.0 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"is_published": true,
"forge": "47.2.1"
}'
Response (200)¶
{
"id": 1,
"modpack_id": 1,
"version": "1.0.0",
"minecraft": "1.20.1",
"forge": "47.2.1",
"is_published": true,
"private": false,
"min_java": "17",
"java_runtime": "java-runtime-gamma",
"min_memory": 2048,
"created_at": "2026-03-31T12:00:00.000000Z",
"updated_at": "2026-03-31T12:10:00.000000Z"
}
Error Responses¶
Modpack not found (404):
Build not found (404):
DELETE /api/modpack/{slug}/{version}¶
Delete a build from a modpack.
Permission required: modpacks_manage + access to the modpack
Path Parameters¶
| Parameter | Type | Description |
|---|---|---|
slug |
string | The modpack slug. |
version |
string | The build version string. |
Example Request¶
curl -X DELETE https://solder.example.com/api/modpack/hexxit/1.0.0 \
-H "Authorization: Bearer YOUR_TOKEN"
Response (200)¶
Error Responses¶
Modpack not found (404):
Build not found (404):
Note
Deleting a build detaches all mod assignments from that build. The mods and mod versions themselves are not deleted.