Skip to content

Add a gallery image

POST
/project/{id|slug}/gallery

Modrinth allows you to upload files of up to 5MiB to a project’s gallery.

Authorizations

Parameters

Path Parameters

id|slug
required
string
[
"AABBCCDD",
"my_project"
]

The ID or slug of the project

Query Parameters

ext
required
string
Allowed values: png jpg jpeg bmp gif webp svg svgz rgb

Image extension

featured
required
boolean

Whether an image is featured

title
string

Title of the image

description
string

Description of the image

ordering
integer

Ordering of the image

Request Body

string format: binary

Responses

204

Expected response to a valid request

400

Request was invalid, see given error

object
error
required

The name of the error

string
invalid_input
description
required

The contents of the error

string
Error while parsing multipart payload

401

Incorrect token scopes or no authorization to access the requested item(s)

object
error
required

The name of the error

string
unauthorized
description
required

The contents of the error

string
Authentication Error: Invalid Authentication Credentials

404

The requested item(s) were not found or no authorization to access the requested item(s)