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

Modpacks

Kyle Klaus edited this page Oct 9, 2017 · 6 revisions

Browse all modpacks

Request

GET /api/modpacks HTTP/1.1
Authentication: Bearer some-token

Response

HTTP/1.1 200 OK

    [
    {
        "id": 1,
        "name": "Attack of the B-Team",
        "slug": "attack-of-the-bteam",
        "status": "public",
    },
    {
        "id": 2,
        "name": "Hexxit",
        "slug": "hexxit",
        "status": "public",
    },
    ]

Add a modpack

Request

POST /api/modpacks HTTP/1.1
Authentication: Bearer some-token

    {
        "name": "Attack of the B-Team",
        "slug": "attack-of-the-bteam",
        "status": "public",
    }

Response

HTTP/1.1 200 OK

    {
        "id": 1,
        "name": "Attack of the B-Team",
        "slug": "attack-of-the-bteam",
        "status": "public",
    }

Upload a modpack icon

PUT /api/modpacks/{modpack_id}/icon HTTP/1.1
Authorization: Bearer AUTH_TOKEN
Content-Length: CONTENT_LENGTH
Content-Type: image/png

BINARY_FILE_DATA

Response

HTTP/1.1 200 OK

    {
        "id": 1,
        "name": "Attack of the B-Team",
        "slug": "attack-of-the-bteam",
        "status": "public",
    }
Clone this wiki locally