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/TeleportFriend
Settings

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json
Teleport Friend Settings
isEnabled
boolean 
可选
teleCmdPrefix
string 
可选
Teleport command prefix
teleInterval
integer <int32>
可选
Teleport interval, in seconds
pointsRequired
integer <int32>
可选
Points required
teleSuccessTip
string 
可选
Teleport success tip
pointsNotEnoughTip
string 
可选
Points not enough tip
coolingTip
string 
可选
Cooling tip
targetNotFoundTip
string 
可选
Target not found tip
isFriendBypass
boolean 
可选
Whether to bypass the friend check
teleConfirmTip
string 
可选
Teleport confirm tip
acceptTele
string 
可选
Teleport accept
rejectTele
string 
可选
Teleport reject
targetRejectTeleTip
string 
可选
Target teleport reject tip
keepDuration
integer <int32>
可选
Keep duration
示例
{
    "isEnabled": true,
    "teleCmdPrefix": "string",
    "teleInterval": 0,
    "pointsRequired": 0,
    "teleSuccessTip": "string",
    "pointsNotEnoughTip": "string",
    "coolingTip": "string",
    "targetNotFoundTip": "string",
    "isFriendBypass": true,
    "teleConfirmTip": "string",
    "acceptTele": "string",
    "rejectTele": "string",
    "targetRejectTeleTip": "string",
    "keepDuration": 0
}

示例代码

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/TeleportFriend' \
--header 'Content-Type: application/json' \
--data-raw '{
    "isEnabled": true,
    "teleCmdPrefix": "string",
    "teleInterval": 0,
    "pointsRequired": 0,
    "teleSuccessTip": "string",
    "pointsNotEnoughTip": "string",
    "coolingTip": "string",
    "targetNotFoundTip": "string",
    "isFriendBypass": true,
    "teleConfirmTip": "string",
    "acceptTele": "string",
    "rejectTele": "string",
    "targetRejectTeleTip": "string",
    "keepDuration": 0
}'

返回响应

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