From f4ff80e5e1f94e8aa293b2e58a7bd583d0762b17 Mon Sep 17 00:00:00 2001 From: AmirGhost11 Date: Tue, 2 Jun 2026 16:21:02 +0000 Subject: [PATCH] Update Media --- Media.md | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/Media.md b/Media.md index 26a3f60..4c02653 100644 --- a/Media.md +++ b/Media.md @@ -7,7 +7,31 @@ To prevent running out of storage, uploads are strict. JWToken is required in me ## File Types: ## Endpoints: -- ### `/media/upload`: -upload media to server. -- ### `/media/create`: -an alias for `/media/upload` \ No newline at end of file +### `POST` `/media/upload`: _`MultiPart`_ +upload media to Server. + +Body: +| field | data type | +| --- | --- | +| file | File | +| alt | String | + +- ### `POST` `/media/create`: _`MultiPart`_ +an alias for `/media/upload` + +- ### `POST` `/media/update`: _`MultiPart`_ +Only update metadata. + +Body: +| field | data type | +| --- | --- | +| id | uuid | +| alt | String | + +- ### `POST` `/media/delete`: _`MultiPart`_ _`json`_ +Delete a media entirely from Server. + +Body: +| field | data type | +| --- | --- | +| id | uuid | \ No newline at end of file