From 4582994e3be8742167f1e764b760c69a4e9237a0 Mon Sep 17 00:00:00 2001 From: Hemachandar Date: Tue, 27 Jan 2026 19:58:41 +0530 Subject: [PATCH] rule response --- src/Appwrite/Utopia/Response/Model/Rule.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Appwrite/Utopia/Response/Model/Rule.php b/src/Appwrite/Utopia/Response/Model/Rule.php index 86ac6f470e..71f3808761 100644 --- a/src/Appwrite/Utopia/Response/Model/Rule.php +++ b/src/Appwrite/Utopia/Response/Model/Rule.php @@ -103,6 +103,19 @@ class Rule extends Model 'example' => APP_DATABASE_ATTRIBUTE_DATETIME, 'array' => false, ]) + ->addRule('actions', [ + 'type' => self::TYPE_ARRAY, + 'description' => 'Additional actions required from the user when rule status is "action_required"', + 'default' => [], + 'example' => [ + [ + 'challengeType' => 'managed-dns', + 'recordType' => 'CNAME', + 'recordName' => '_acme-challenge', + 'recordValue' => 'test.fastly-validations.com', + ], + ], + ]) ; }