Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Modpack Builds

Kyle Klaus edited this page Oct 10, 2017 · 4 revisions

Read a modpack build

Request

GET /api/builds/{build_id} HTTP/1.1
Authentication: Bearer {access-token}

Response

HTTP/1.1 200 OK

    {
        "id": 1,
        "modpack_id": 1,
        "version": "1.0.0",
        "status": "public"
    }

Add a modpack build

Request

POST /api/builds HTTP/1.1
Authentication: Bearer {access-token}

    {
        "modpack_id": 1,
        "version": "1.0.0",
        "status": "public"
    }

Response

HTTP/1.1 200 OK

    {
        "id": 1,
        "modpack_id": 1,
        "version": "1.0.0",
        "status": "public"
    }

Bundle a release

Request

POST /api/builds/{build_id}/bundles HTTP/1.1
Authentication: Bearer {access-token}

    {
        "release_id": 1,
    }

Response

HTTP/1.1 200 OK

    {
        "id": 1,
        "release_id": 1,
    }

Edit a bundle

Request

POST /api/builds/{build_id}/bundles/{bundle_id} HTTP/1.1
Authentication: Bearer {access-token}

    {
        "release_id": 2,
    }

Response

HTTP/1.1 200 OK

    {
        "id": 1,
        "release_id": 2,
    }
Clone this wiki locally