Spaces can define community rules — titled and optionally described guidelines that are publicly visible to all users. Rules are ordered and can be reordered by admins. They are read-only for regular members.Documentation Index
Fetch the complete documentation index at: https://docs.replyke.com/llms.txt
Use this file to discover all available pages before exploring further.
Fetching Rules
Rules are publicly readable without authentication:Creating Rules
Only space admins can create rules:Updating and Deleting Rules
Reordering Rules
Admins can reorder rules by providing a new ordered array of rule IDs:order field on each rule reflects its position in the list. Rules are typically displayed in ascending order.
Rule Data Shape
Each rule returned by the API has the following fields:| Property | Type | Description |
|---|---|---|
id | string | Unique rule identifier. |
spaceId | string | The space this rule belongs to. |
title | string | Short rule title. |
description | string | null | Optional detailed description. |
order | number | Sort position within the space’s rule list. |
lastApprovedBy | string | null | ID of the admin who last approved this rule. |
createdAt | Date | Creation timestamp. |
updatedAt | Date | Last update timestamp. |
Hook Reference
| Hook | Description |
|---|---|
useFetchManyRules | Fetch all rules for a space |
useFetchRule | Fetch a single rule |
useCreateRule | Create a new rule (admin only) |
useUpdateRule | Update a rule (admin only) |
useDeleteRule | Delete a rule (admin only) |
useReorderRules | Reorder rules (admin only) |

