Update Media

2026-06-02 16:21:02 +00:00
parent d7c159d166
commit f4ff80e5e1
+27 -3
@@ -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`:
### `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 |