Skip to content

Commit 347c3ae

Browse files
authored
fix: Rename the sortBy parameter option (#1647)
Renamed option for sortBy parameter from "lastRunStartedAt" to "stats.lastRunStartedAt" to fit the [TICKET](https://app.zenhub.com/workspaces/platform-team-5f6454160d9f82000fa6733f/issues/gh/apify/apify-core/20997) specifications. Will merge when the [apify-core PR](apify/apify-core#21731) is deployed
1 parent 9377e54 commit 347c3ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apify-api/openapi/paths/actors/acts.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ get:
1515
order, therefore you can use pagination to incrementally fetch all Actors while new
1616
ones are still being created. To sort the records in descending order, use the `desc=1` parameter.
1717
18-
You can also sort by `lastRunStartedAt` by using the `sortBy=lastRunStartedAt` query parameter.
18+
You can also sort by your last run by using the `sortBy=stats.lastRunStartedAt` query parameter.
1919
In this case, descending order means the most recently run Actor appears first.
2020
2121
operationId: acts_get
@@ -64,11 +64,11 @@ get:
6464
- name: sortBy
6565
in: query
6666
description: |
67-
Field to sort the records by. The default is `createdAt`. You can also use `lastRunStartedAt` to sort
67+
Field to sort the records by. The default is `createdAt`. You can also use `stats.lastRunStartedAt` to sort
6868
by the most recently ran Actors.
6969
schema:
7070
type: string
71-
enum: [createdAt, lastRunStartedAt]
71+
enum: [createdAt, stats.lastRunStartedAt]
7272
example: createdAt
7373
responses:
7474
'200':

0 commit comments

Comments
 (0)