You've already forked AstralRinth
forked from didirus/AstralRinth
Add ability to delete user icon (#3383)
* Add user icon delete route By request of moderation, but also just generally nice to have * Add relevant docs and frontend * Add v2 version
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
openapi: '3.0.0'
|
||||
|
||||
info:
|
||||
version: v2.7.0/15cf3fc
|
||||
version: v2.7.0/366f528
|
||||
title: Labrinth
|
||||
termsOfService: https://modrinth.com/legal/terms
|
||||
contact:
|
||||
@@ -3018,6 +3018,24 @@ paths:
|
||||
$ref: '#/components/schemas/InvalidInputError'
|
||||
'404':
|
||||
description: The requested item(s) were not found or no authorization to access the requested item(s)
|
||||
delete:
|
||||
summary: Remove user's avatar
|
||||
operationId: deleteUserIcon
|
||||
tags:
|
||||
- users
|
||||
security:
|
||||
- TokenAuth: ['USER_WRITE']
|
||||
responses:
|
||||
'204':
|
||||
description: Expected response to a valid request
|
||||
'400':
|
||||
description: Request was invalid, see given error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/InvalidInputError'
|
||||
'404':
|
||||
description: The requested item(s) were not found or no authorization to access the requested item(s)
|
||||
/user/{id|username}/projects:
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/UserIdentifier'
|
||||
|
||||
Reference in New Issue
Block a user