Downloads a media file by its ID.
No authentication required.
You must have view permission for the target attachable resource (except the ones that are accessible without authentication).
Name | Type | Required | Description | Example |
---|---|---|---|---|
media-id | int | Yes | ID of the media to download | 123 |
GET /api/v1/media/123
Authorization: Bearer {token}
The media file will be returned as a binary download.
Status | Description | Reference |
---|---|---|
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |
404 | Not found | Not-found error |