PalWorld
  1. Player
PalWorld
  • Guild
    • List Guilds
      GET
    • Put Guilds
      PUT
    • Get Guild
      GET
  • Auth
    • Login
      POST
  • Player
    • List Players
      GET
    • Put Players
      PUT
    • Get Player
      GET
    • Ban Player
      POST
    • Kick Player
      POST
    • List White List
      GET
    • Put White List
      PUT
    • Add White List
      POST
    • Remove White List
      DELETE
  • Server
    • Get Server Info
      GET
    • Publish Broadcast
      POST
    • Shutdown Server
      POST
    • Get PalWorld Server Tool
      GET
  • Sync
    • Sync Data
      POST
  • Rcon
    • List Rcon Commands
      GET
    • Add Rcon Command
      POST
    • Import Rcon Commands
      POST
    • Send Rcon Command
      POST
    • Put Rcon Command
      PUT
    • Remove Rcon Command
      DELETE
  • backup
    • List backups within a specified time range
    • Download Backup
    • Delete Backup
  1. Player

Put Players

PUT
/api/player
Put Players Only For SavSync,RconSync

请求参数

Body 参数application/json

示例
[
    {
        "exp": 0,
        "full_stomach": 0,
        "hp": 0,
        "items": {
            "CommonContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "DropSlotContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "EssentialContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "FoodEquipContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "PlayerEquipArmorContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "WeaponLoadOutContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ]
        },
        "last_online": "string",
        "level": 0,
        "max_hp": 0,
        "max_status_point": 0,
        "nickname": "string",
        "pals": [
            {
                "defense": 0,
                "exp": 0,
                "gender": "string",
                "hp": 0,
                "is_boss": true,
                "is_lucky": true,
                "is_tower": true,
                "level": 0,
                "max_hp": 0,
                "melee": 0,
                "ranged": 0,
                "rank": 0,
                "skills": [
                    "string"
                ],
                "type": "string",
                "workspeed": 0
            }
        ],
        "player_uid": "string",
        "save_last_online": "string",
        "shield_hp": 0,
        "shield_max_hp": 0,
        "status_point": {
            "property1": 0,
            "property2": 0
        },
        "steam_id": "string"
    }
]

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/player' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "exp": 0,
        "full_stomach": 0,
        "hp": 0,
        "items": {
            "CommonContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "DropSlotContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "EssentialContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "FoodEquipContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "PlayerEquipArmorContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ],
            "WeaponLoadOutContainerId": [
                {
                    "ItemId": "string",
                    "SlotIndex": 0,
                    "StackCount": 0
                }
            ]
        },
        "last_online": "string",
        "level": 0,
        "max_hp": 0,
        "max_status_point": 0,
        "nickname": "string",
        "pals": [
            {
                "defense": 0,
                "exp": 0,
                "gender": "string",
                "hp": 0,
                "is_boss": true,
                "is_lucky": true,
                "is_tower": true,
                "level": 0,
                "max_hp": 0,
                "melee": 0,
                "ranged": 0,
                "rank": 0,
                "skills": [
                    "string"
                ],
                "type": "string",
                "workspeed": 0
            }
        ],
        "player_uid": "string",
        "save_last_online": "string",
        "shield_hp": 0,
        "shield_max_hp": 0,
        "status_point": {
            "property1": 0,
            "property2": 0
        },
        "steam_id": "string"
    }
]'

返回响应

🟢200OK
application/json
Body

示例
{
    "success": true
}
🟠400Bad Request
🟠401Unauthorized
修改于 2024-03-06 17:03:40
上一页
List Players
下一页
Get Player
Built with