- Admins
- AppSettings
- Blacklist
- ChatRecord
- CityLocation
- Goods
- HomeLocation
- Inventories
- ItemBlocks
- ItemIcons
- LandClaims
- Localization
- Locations
- Map
- Permissions
- Players
- PointsInfo
- Server
- TeleRecord
- Whitelist
- Settings
- AutoBackup
- CommandList
- ItemList
- VipGift
- PlayerSkills
- UiIcons
- Auth
- ColoredChat
- Prefab
Place prefab.
POST
/api/Prefab/PlacePrefab
Prefab
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
Represents a prefab placement.
prefabFileName
string
可选
position
可选
One of
x
integer <int32>
X
y
integer <int32>
Y
z
integer <int32>
Z
rotation
可选
One of
枚举值:
0123
noSleepers
boolean
可选
addToRWG
boolean
可选
示例
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://7dtdserver.local:8888/api/Prefab/PlacePrefab' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
array[string] | null
可选
示例
[
"string"
]
修改于 2024-12-09 01:52:42