7DaysToDie-ServerKit
  1. Settings
7DaysToDie-ServerKit
  • Admins
    • Add admins
    • Get admins
    • Remove admins
  • AppSettings
    • AppSettings_Get
    • AppSettings_Put
  • Blacklist
    • Add blacklist
    • Get blacklist
    • Remove blacklist
  • ChatRecord
    • 分页获取记录
    • 批量删除记录
    • 通过Id删除记录
  • CityLocation
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 获取所有记录
    • 新增记录
    • 批量删除记录
  • Goods
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 获取所有记录
    • 新增记录
    • 批量删除记录
    • 获取商品关联的物品清单
    • 修改商品关联的物品
    • 获取商品关联的命令Id
    • 修改商品关联的命令
  • HomeLocation
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 分页获取记录
    • 新增记录
    • 批量删除记录
  • Inventories
    • 获取指定玩家的背包
    • 批量删除指定玩家背包中的物品
    • 获取指定玩家的背包
    • 删除指定玩家背包中的物品
  • ItemBlocks
    • Get item and blocks.
  • ItemIcons
    • 获取 ItemIcon
  • LandClaims
    • 获取指定玩家的领地石
    • 获取所有玩家的领地石
  • Localization
    • 获取本地化字典
    • 获取指定项目的本地化字符串
    • 获取已知的语言
  • Locations
    • 获取位置
    • 获取位置
  • Map
    • 获取地图信息
    • 获取切片
    • 渲染整个地图
    • 渲染已探索区域
  • Permissions
    • Add permissions
    • Get permissions
    • Remove permissions
  • Players
    • 获取所有在线玩家
    • 获取指定在线玩家
    • 获取指定在线玩家
    • 分页获取历史玩家
    • 获取指定历史玩家
  • PointsInfo
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 分页获取记录
    • 新增记录
    • 批量删除记录
  • Server
    • Execute console command.
    • Get allowed commands.
    • Get allowed commands.
    • Get stats.
    • 系统信息
    • Get game infomation.
    • Get game infomation.
    • Send global message.
    • Send private message.
    • Restart server.
    • Shutdown server.
    • Reset Player.
    • Get server settings.
    • Put server settings.
  • TeleRecord
    • 分页获取记录
    • 批量删除记录
    • 通过Id删除记录
  • Whitelist
    • Add whitelist
    • Get whitelist
    • Remove whitelist
  • Settings
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
    • 获取配置
      GET
    • 更新配置
      PUT
    • 重置配置
      DELETE
  • AutoBackup
    • 获取备份文件列表
    • 删除备份文件
    • 手动备份
  • CommandList
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 分页获取记录
    • 新增记录
    • 批量删除记录
  • ItemList
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 分页获取记录
    • 新增记录
    • 批量删除记录
  • VipGift
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 获取所有记录
    • 新增记录
    • 批量删除记录
    • 获取礼品关联的物品清单
    • 修改礼品关联的物品
    • 获取礼品关联的命令Id
    • 修改礼品关联的命令
  • PlayerSkills
    • Gets player progression
  • UiIcons
    • Get ui icon
  • Auth
    • OAuth_Token
  • ColoredChat
    • 通过Id获取记录
    • 通过Id更新记录
    • 通过Id删除记录
    • 获取所有记录
    • 新增记录
    • 批量删除记录
  • Prefab
    • Get all available prefabs.
    • Place prefab.
    • Get undo history.
    • Undo prefab.
  1. Settings

更新配置

PUT
/api/Settings/GlobalSettings
Settings

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json
Global settings.
isEnabled
boolean 
可选
globalServerName
string 
可选
Gets or sets the global server name.
whisperServerName
string 
可选
Gets or sets the whisper server name.
chatCommandPrefix
string 
可选
Gets or sets the chat command prefix.
chatCommandSeparator
string 
可选
Gets or sets the chat command separator.
handleChatMessageError
string 
可选
Gets or sets the error message for handling chat messages.
teleZombieCheck
boolean 
可选
Gets or sets a value indicating whether to check for zombies around the player before teleporting.
teleDisableTip
string 
可选
Gets or sets the disable teleportation tip.
killZombieTrigger
可选
Gets or sets the trigger for killing zombies.
One of
isEnabled
boolean 
可选
Gets or sets a value indicating whether the trigger is enabled.
executeCommands
array[string]
可选
Gets or sets the commands to execute when the trigger is activated.
deathTrigger
可选
Gets or sets the trigger for player death.
One of
isEnabled
boolean 
可选
Gets or sets a value indicating whether the trigger is enabled.
executeCommands
array[string]
可选
Gets or sets the commands to execute when the trigger is activated.
autoRestart
可选
Gets or sets the auto restart settings.
One of
isEnabled
boolean 
可选
Gets or sets a value indicating whether auto restart is enabled.
restartHour
integer <int32>
可选
Gets or sets the hour at which the server should restart.
restartMinute
integer <int32>
可选
Gets or sets the minute at which the server should restart.
messages
array[string]
可选
Gets or sets the messages to display before the server restarts.
blockFamilySharingAccount
boolean 
可选
Gets or sets a value indicating whether to block family sharing accounts from joining the server.
removeSleepingBagFromPOI
boolean 
可选
Gets or sets a value indicating whether to remove sleeping bags from Points of Interest (POI).
isEnablePlayerInitialSpawnPoint
boolean 
可选
Gets or sets a value indicating whether to enable player initial spawn point.
playerInitialPosition
string 
可选
Gets or sets the player's initial position.
enableAutoZombieCleanup
boolean 
可选
Gets or sets a value indicating whether to enable automatic zombie cleanup.
autoZombieCleanupThreshold
integer <int32>
可选
Gets or sets the auto zombie cleanup threshold.
enableXmlsSecondaryOverwrite
boolean 
可选
Gets or sets a value indicating whether to enable XMLs secondary overwrites.
示例
{
    "isEnabled": true,
    "globalServerName": "string",
    "whisperServerName": "string",
    "chatCommandPrefix": "string",
    "chatCommandSeparator": "string",
    "handleChatMessageError": "string",
    "teleZombieCheck": true,
    "teleDisableTip": "string",
    "killZombieTrigger": {
        "isEnabled": true,
        "executeCommands": [
            "string"
        ]
    },
    "deathTrigger": {
        "isEnabled": true,
        "executeCommands": [
            "string"
        ]
    },
    "autoRestart": {
        "isEnabled": true,
        "restartHour": 0,
        "restartMinute": 0,
        "messages": [
            "string"
        ]
    },
    "blockFamilySharingAccount": true,
    "removeSleepingBagFromPOI": true,
    "isEnablePlayerInitialSpawnPoint": true,
    "playerInitialPosition": "string",
    "enableAutoZombieCleanup": true,
    "autoZombieCleanupThreshold": 0,
    "enableXmlsSecondaryOverwrite": true
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://7dtdserver.local:8888/api/Settings/GlobalSettings' \
--header 'Content-Type: application/json' \
--data-raw '{
    "isEnabled": true,
    "globalServerName": "string",
    "whisperServerName": "string",
    "chatCommandPrefix": "string",
    "chatCommandSeparator": "string",
    "handleChatMessageError": "string",
    "teleZombieCheck": true,
    "teleDisableTip": "string",
    "killZombieTrigger": {
        "isEnabled": true,
        "executeCommands": [
            "string"
        ]
    },
    "deathTrigger": {
        "isEnabled": true,
        "executeCommands": [
            "string"
        ]
    },
    "autoRestart": {
        "isEnabled": true,
        "restartHour": 0,
        "restartMinute": 0,
        "messages": [
            "string"
        ]
    },
    "blockFamilySharingAccount": true,
    "removeSleepingBagFromPOI": true,
    "isEnablePlayerInitialSpawnPoint": true,
    "playerInitialPosition": "string",
    "enableAutoZombieCleanup": true,
    "autoZombieCleanupThreshold": 0,
    "enableXmlsSecondaryOverwrite": true
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-12-09 01:52:42
上一页
获取配置
下一页
重置配置
Built with