Add a gallery image
POST /project/{id|slug}/gallery
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
The ID or slug of the project
Query Parameters
ext
required
string
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
string format: binary
string format: binary
string format: binary
string format: binary
string format: binary
string format: binary
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
description
required
The contents of the error
string
401
Incorrect token scopes or no authorization to access the requested item(s)
object
error
required
The name of the error
string
description
required
The contents of the error
string
404
The requested item(s) were not found or no authorization to access the requested item(s)