Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a new community rule for a space
useCreateRule
import { useCreateRule } from "@sublay/react-js"; function AddRuleForm({ spaceId }: { spaceId: string }) { const createRule = useCreateRule(); const handleSubmit = async (title: string, description: string) => { const rule = await createRule({ spaceId, title, description }); console.log("Created rule:", rule.id); }; }
order