Danh mục thao tác

Tạo luật từ mẫu

rules.from_templateMCP:rules_from_templateBộ công cụ: Thiết lập tự chạy

Create and enable a rule from a built-in template for some accounts.

Cần Idempotency-Key
Quản trị
Quyền: Thiết lập tự chạy

Gọi bằng REST v2

curl -X POST https://zl.builera.app/api/public/v2/ops/rules.from_template \
  -H "Authorization: Bearer za_live_…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"key":"x"}'

Mỗi khoá/kết nối tối đa 300 lệnh đọc và 60 lệnh ghi mỗi phút. Gọi lại cùng Idempotency-Key trả đúng kết quả cũ, không làm lại.

Gọi qua MCP

{
  "method": "tools/call",
  "params": {
    "name": "rules_from_template",
    "arguments": {
      "key": "x"
    }
  }
}

Thêm https://zl.builera.app/mcp vào ứng dụng AI rồi cho phép kết nối; AI chỉ thấy công cụ trong bộ bạn chọn.

Kết quả

HTTP 200
{ "status": "succeeded", "operationId": "…", "data": { … } }

Ví dụ đầu vào

{
  "key": "x"
}

Thay mã (id) mẫu bằng mã thật lấy từ các thao tác liệt kê/tìm kiếm.

Lược đồ đầu vào (JSON Schema)

{
  "type": "object",
  "properties": {
    "key": {
      "type": "string",
      "maxLength": 40
    },
    "accountIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "maxItems": 50,
      "default": []
    }
  },
  "required": [
    "key"
  ],
  "additionalProperties": false
}

Cùng bộ công cụ