---
title: "Published an audio file and returns the new asset info."
method: POST
path: "/v1/audio"
tags: ["Assets"]
---

# Published an audio file and returns the new asset info.

`POST /v1/audio`

## Request body

- RobloxPublishApiUploadAudioRequest — A request model for uploading an audio file.
  - `name` string — Name for the audio file.
  - `file` string — File to be uploaded. Formatted as a base64 string.
  - `groupId` integer — Id of the group you are publishing the audio asset for. Null if not publishing under a group.
  - `paymentSource` string — The source of funds for payment. User: Use personal funds of authenticated user. Group: Use group funds from Roblox.Publish.Api.UploadAudioRequest.GroupId. Null/Empty: Will default to authenticated user funds.
  - `estimatedFileSize` integer — Estimated file size of the audio file in bytes.
  - `estimatedDuration` number, double — Estimated duration of the audio file in seconds.
  - `assetPrivacy` 1 | 2 — The asset privacy of the audio asset.

## Response `200`

OK

- RobloxPublishApiPublishAudioResponse — Response model for publish audio.
  - `Id` integer — Id of the published asset.
  - `Name` string — Name of the published asset.

## Other responses

- `400` — 3: The request did not contain a file to be uploaded. 4: The file in the request is too large. 5: The duration of the audio file is too long. 7: Failed to parse the file. 8: The file type is not supported. 9: The file is corrupted 11: Missing permissions to spend group funds. 14: The user/group does not have suffiecient funds to publish. 14: The user/group does not have suffiecient funds to publish. 15: The audio file has already been reviewed and rejected. 18: Too many requests. Try again later. 20: Error while trying to purchase the product. 22: The file size estimation error was greater than the acceptable margin of error. 23: The duration estimation error was greater than the acceptable margin of error. 24: Asset privacy is invalid. 29: Invalid argument in the request.
- `401` — 0: Authorization has been denied for this request. 1: The request did not include an authorization.
- `403` — 0: Token Validation Failed
- `500` — 19: Asset creation was unavailable. Please try again.

---

[API](https://skmtc.net/roblox/apis/roblox-api.md) · [All operations](https://skmtc.net/roblox/apis/roblox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roblox/roblox-api/versions/e15802062270/schema)
