---
title: "Create a MOH music"
method: POST
path: "/moh_server/musics"
tags: ["MOH"]
---

# Create a MOH music

`POST /moh_server/musics`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/moh_server/musics`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/moh_server/musics/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a MOH music.

## Request body

- object
  - `file_id` string: The unique ID of the resource.

## Response `201`

Created MOH music

- object
  - `id` string: The unique ID of the resource.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
