- for descending order.
- * Allowed values: title, created_at, modified_at.
+ * @param sort Sort field for the results. title, created_at,
+ * modified_at — both ascending and descending are supported. Use the
+ * bare field name for ascending (e.g. sort=title) or prefix with -
+ * for descending (e.g. sort=-modified_at). is_favorited
+ * — returns favorites-first ordering (favorited widgets first, then the
+ * rest). Direction is fixed; the - prefix is ignored for this field.
* (optional, default to "-modified_at")
* @return SearchWidgetsOptionalParameters
*/
@@ -717,8 +721,17 @@ public CompletableFutureResponse meta carries totals scoped to the current filter: -
+ * filtered_total — widgets matching the filter. - created_by_you_total —
+ * among the matches, how many the current user created. - favorited_by_you_total —
+ * among the matches, how many the current user has favorited. - created_by_anyone_total
+ * — total widgets in the experience type, ignoring filters.
+ *
+ *
Each returned widget includes is_favorited reflecting the current user's
+ * favorite status. Favoriting itself is performed through the shared favorites API, not this
+ * endpoint.
*
* @param experienceType The experience type for the widget. (required)
* @param parameters Optional parameters for the request.
diff --git a/src/main/java/com/datadog/api/client/v2/model/WidgetAttributes.java b/src/main/java/com/datadog/api/client/v2/model/WidgetAttributes.java
index b7f0c9cbf2e..e1da3cb9492 100644
--- a/src/main/java/com/datadog/api/client/v2/model/WidgetAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/WidgetAttributes.java
@@ -111,7 +111,10 @@ public WidgetAttributes isFavorited(Boolean isFavorited) {
}
/**
- * Will be implemented soon. Currently always returns false.
+ * Whether the current user has favorited this widget. Populated on get, batch_get, update, and
+ * search responses; create responses always return false because a widget can only
+ * be favorited after it exists. Favoriting itself is performed through the shared favorites API,
+ * not this service.
*
* @return isFavorited
*/