wolai
  1. Block
wolai
  • 一分钟,了解 Wolai API!
  • Block
    • 查询块子节点
      GET
    • 查询块详情
      GET
    • 创建块
      POST
  • Token
    • 创建 Token
      POST
  • Database
    • 获取数据表格数据
      GET
    • 数据表格新增数据
      POST
  1. Block

创建块

开发中
POST
https://openapi.wolai.com/v1/blocks
宠物

请求参数

Header 参数
Authorization
string 
必需
Body 参数application/json
blocks
必需
Any of
parent_id
string 
必需
示例
{
  "parent_id": "父块ID",
  "blocks": [
      {
          "type": "text",
          "content": "Hello ",
          "text_alignment": "center"
      },
      {
          "type": "heading",
          "level": 1,
          "content": {
            "title": "World!",
            "front_color": "red"
          },
           "text_alignment": "center"
      }
  ]
}

返回响应

🟢201成功
application/json
Body
userId
string 
必需
spaceId
string 
必需
block
object 
必需
parent_id
string 
必需
type
string 
必需
示例
{
    "userId": "string",
    "spaceId": "string",
    "block": {
        "parent_id": "string",
        "type": "string"
    }
}
上一页
查询块详情
下一页
创建 Token
Built with