diff options
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/swagger.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 2e514e414..19b49489e 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -2336,6 +2336,43 @@ paths: summary: Verify a token by returning account details pertaining to it. tags: - accounts + /api/v1/admin/accounts/{id}/action: + post: + consumes: + - multipart/form-data + operationId: adminAccountAction + parameters: + - description: ID of the account. + in: path + name: id + required: true + type: string + - description: 'Type of action to be taken. One of: disable, silence, suspend.' + in: formData + name: type + required: true + type: string + - description: Optional text describing why this action was taken. + in: formData + name: text + type: string + produces: + - application/json + responses: + "200": + description: OK + "400": + description: bad request + "401": + description: unauthorized + "403": + description: forbidden + security: + - OAuth2 Bearer: + - admin + summary: Perform an admin action on an account. + tags: + - admin /api/v1/admin/custom_emojis: post: consumes: |