D黑奴背锅 文档中心
修仙 API战斗
POST/business/xiuxian/combat/spawn_boss

手动生成一个世界Boss。

注意事项

  • 需要 xiuxian:boss:spawn 权限。
  • 已有活跃 Boss 时返回 code=1,message='修仙数据已存在或今日已操作'。

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/business/xiuxian/combat/spawn_boss" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "level_index": 0  }'
{  "code": 0,  "message": "生成世界Boss成功",  "data": {    "name": "远古凶兽",    "hp": 10000  },  "time": 1779502528}