---
title: "Run a command in-game as virtual server management"
method: POST
path: "/v2/server/command"
---

# Run a command in-game as virtual server management

`POST /v2/server/command`

## Headers

- `Authorization` string

## Request body

- object
  - `command` string — The command to be executed

## Response `200`

Command executed successfully

- object
  - `message` string — A message explaining the status of your command

## Other responses

- `400` — Bad request
- `403` — Unauthorized
- `422` — The private server has no players in it
- `500` — Problem communicating with Roblox

---

[API](https://skmtc.dev/erlc/apis/er-lc-private-servers-api-v2.md) · [All operations](https://skmtc.dev/erlc/apis/er-lc-private-servers-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/erlc/er-lc-private-servers-api-v2/revisions/f0b72c41869e/schema)
