Create a media
METHOD: POST
ENDPOINT: /api/v2/media/
AUTHENTICATED: YES
Make a multipart/form-data POST request with the following parameters.
Name | Type | Description |
---|---|---|
file | Required | The path to the image. Supported types are gif,jpg,jpeg,png |
caption | Optional | A short title or caption for the image to be uploaded |
POST https://ushv3.dev/api/v2/media
|
Listing all media
METHOD: GET
ENDPOINT: /api/v2/media/
AUTHENTICATED: No
Name | Type | Description |
---|---|---|
order | Optional | Returned media will be sorted in this order: ASC or DESC. Default: DESC |
order_by | Optional | Returned media will be sorted by this field. Default: created |
limit | Optional | Limit number of results returned. Default: 50. Max: 500 |
offset | Optional | Media returned will be offset by this number of results |
GET https://ushv3.dev/api/v2/media
|
Get a single media
METHOD: GET
ENDPOINT: /api/v2/media/:id
AUTHENTICATED: YES
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the media being updated. |
GET http://ushv3.dev/api/v2/media/1
|
Deleting a media
METHOD: DELETE
ENDPOINT: /api/v2/media/:id
AUTHENTICATED: YES
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the media being deleted. |
DELETE /api/v2/media/2
|