Skip to main content
PUT
/
servers
/
{serverId}
/
config
Update Server Configuration
curl --request PUT \
  --url https://api.mcmp.app/v1/servers/{serverId}/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "maxPlayers": 150,
  "motd": "Updated Server Message",
  "difficulty": "hard"
}
'
{
  "status": "success",
  "message": "Configuration updated successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

serverId
string
required

The unique identifier of the server

Body

application/json
maxPlayers
integer
Required range: 1 <= x <= 1000
motd
string
Maximum string length: 255
difficulty
enum<string>
Available options:
peaceful,
easy,
normal,
hard

Response

200 - application/json

Configuration updated successfully

status
string
Example:

"success"

message
string
Example:

"Configuration updated successfully"