D黑奴背锅 文档中心
修仙 API宗门
POST/business/xiuxian/sect/create

消耗灵石创建一个新宗门,创建者成为宗主。

注意事项

  • 已有宗门返回 code=1,message='修仙数据已存在或今日已操作'。
  • 名称已被占用返回 code=1,message='修仙请求参数无效'。
  • 灵石不足返回 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/sect/create" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "code": 0,  "message": "创建宗门成功",  "data": {    "name": "天剑宗",    "owner": "b1_p1",    "member_count": 1  },  "time": 1779502528}