---
title: "Update a media server"
method: POST
path: "/media_servers/{id}"
tags: ["Media Server"]
---

# Update a media server

`POST /media_servers/{id}`

## Request

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

Update a media server

## Path parameters

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

## Request body

- object
  - `enabled` boolean: The activate status or deactivated status.
  - `max_concurrency` integer: Max concurrent sessions.
  - `custom_options` string: Some custom configuration options serialized as json string

## Response `200`

OK

## 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)
