summaryrefslogtreecommitdiff
path: root/internal/api/client/accounts/profile.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/accounts/profile.go')
-rw-r--r--internal/api/client/accounts/profile.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/internal/api/client/accounts/profile.go b/internal/api/client/accounts/profile.go
index 6f9194ba9..17105d656 100644
--- a/internal/api/client/accounts/profile.go
+++ b/internal/api/client/accounts/profile.go
@@ -50,14 +50,24 @@ import (
// schema:
// "$ref": "#/definitions/account"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) AccountAvatarDELETEHandler(c *gin.Context) {
m.accountDeleteProfileAttachment(c, m.processor.Media().DeleteAvatar)
@@ -85,14 +95,24 @@ func (m *Module) AccountAvatarDELETEHandler(c *gin.Context) {
// schema:
// "$ref": "#/definitions/account"
// '400':
+// schema:
+// "$ref": "#/definitions/error"
// description: bad request
// '401':
+// schema:
+// "$ref": "#/definitions/error"
// description: unauthorized
// '403':
+// schema:
+// "$ref": "#/definitions/error"
// description: forbidden
// '406':
+// schema:
+// "$ref": "#/definitions/error"
// description: not acceptable
// '500':
+// schema:
+// "$ref": "#/definitions/error"
// description: internal server error
func (m *Module) AccountHeaderDELETEHandler(c *gin.Context) {
m.accountDeleteProfileAttachment(c, m.processor.Media().DeleteHeader)