diff --git a/ayon_api/server_api.py b/ayon_api/server_api.py index 918a82c35..5f1355079 100644 --- a/ayon_api/server_api.py +++ b/ayon_api/server_api.py @@ -1466,9 +1466,9 @@ def get_events( newer_than: Optional[str] = None, older_than: Optional[str] = None, fields: Optional[Iterable[str]] = None, - states: Optional[Iterable[str]] = None, limit: Optional[int] = None, order: Optional[SortOrder] = None, + states: Optional[Iterable[str]] = None, ): """Get events from server with filtering options. @@ -1492,12 +1492,12 @@ def get_events( iso datetime string. fields (Optional[Iterable[str]]): Fields that should be received for each event. - states (Optional[Iterable[str]]): DEPRECATED Filtering by states. - Use 'statuses' instead. limit (Optional[int]): Limit number of events to be fetched. - order (Optional[SortOrder]): Order activities in ascending + order (Optional[SortOrder]): Order events in ascending or descending order. It is recommended to set 'limit' - when used. + when used descending. + states (Optional[Iterable[str]]): DEPRECATED Filtering by states. + Use 'statuses' instead. Returns: Generator[dict[str, Any]]: Available events matching filters. @@ -1856,7 +1856,7 @@ def get_activities( limit (Optional[int]): Limit number of activities to be fetched. order (Optional[SortOrder]): Order activities in ascending or descending order. It is recommended to set 'limit' - when used. + when used descending. Returns: Generator[dict[str, Any]]: Available activities matching filters.