---
title: "Upload a audio file"
method: POST
path: "/medias/{id}/upload/audio"
tags: ["Medias"]
deprecated: true
---

# Upload a audio file

`POST /medias/{id}/upload/audio`

> **Deprecated.**

Upload a new audio file for a given media ID

## Path parameters

- `id` string, required

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `bit_rate` string
    - `duration` string
    - `filename` string
    - `format_long_name` string
    - `format_name` string
    - `nb_programs` integer
    - `nb_streams` integer
    - `probe_score` integer
    - `size` string
    - `start_time` string
  - `metadata` object

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2021-01-17** `ba6166bb4c3d` — 1 info
  - endpoint deprecated
- **2020-12-08** `a75b2e935c54` — 1 info
  - api operation id `UploadAudio` removed and replaced with `uploadAudio`
- **2020-12-08** `186339c67669` — 1 info
  - endpoint added
- **2020-08-12** `e96b35d97038` — 1 info
  - api path removed with deprecation

[Change history](https://skmtc.dev/dreamvo/apis/gilfoyle-server/changes/medias/:id/upload/audio/post.md)

---

[API](https://skmtc.dev/dreamvo/apis/gilfoyle-server.md) · [All operations](https://skmtc.dev/dreamvo/apis/gilfoyle-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dreamvo/gilfoyle-server/revisions/47e030153fc0/schema)
