Update Media
+28
-4
@@ -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`
|
||||
### `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 |
|
||||
Reference in New Issue
Block a user