Deletes an attached media file from a specified element.
You must have update permission for the target attachable resource.
Name | Type | Required | Description | Example |
---|---|---|---|---|
media-id | int | Yes | ID of the media to delete | 123 |
DELETE /api/v1/media/123
Authorization: Bearer {token}
No content is returned when the media is successfully deleted.
Status | Description | Reference |
---|---|---|
401 | Unauthorized | Authentication error |
403 | Forbidden (no permission) | Permission error |
404 | Not found | Not-found error |