Skip to main content

Overview

useUpdateRule returns a callable function for updating a rule’s title or description. Only space admins can update rules.

Usage Example

Parameters

string
required
UUID of the space.
string
required
UUID of the rule to update.
The changes go next to spaceId and ruleId, all optional, not inside an update object (an update key throws a SublayError before anything is sent).
string
Updated title.
string | null
Updated description. Pass null to clear.

Returns

The updated Rule object.