Allow expires_at in filter requests
[akkoma] / lib / pleroma / web / api_spec / operations / filter_operation.ex
index 5102921bc35eae7607554c2052ca45eea09190e3..ac0444aef46d1d305873e0a0ebca74774836574d 100644 (file)
@@ -225,6 +225,12 @@ defmodule Pleroma.Web.ApiSpec.FilterOperation do
           type: :integer,
           description:
             "Number of seconds from now the filter should expire. Otherwise, null for a filter that doesn't expire."
+        },
+        expires_at: %Schema{
+          nullable: true,
+          type: :string,
+          description:
+            "When the filter should no longer be applied. String (ISO 8601 Datetime), or null if the filter does not expire."
         }
       },
       required: [:phrase, :context],