Skip to content

Commit f7c6887

Browse files
authored
feat: acts new parameter sortBy (#1637)
additional docs to include for the new param sortBy for the get /acts endpoint. The new param is in this [PR](apify/apify-core#21566). I will only merge this PR after the feature is deployed.
1 parent e500a7c commit f7c6887

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ 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.
19+
In this case, descending order means the most recently run Actor appears first.
20+
1821
operationId: acts_get
1922
parameters:
2023
- name: my
@@ -58,6 +61,15 @@ get:
5861
schema:
5962
type: boolean
6063
example: true
64+
- name: sortBy
65+
in: query
66+
description: |
67+
Field to sort the records by. The default is `createdAt`. You can also use `lastRunStartedAt` to sort
68+
by the most recently ran Actors.
69+
schema:
70+
type: string
71+
enum: [createdAt, lastRunStartedAt]
72+
example: createdAt
6173
responses:
6274
'200':
6375
description: ''

0 commit comments

Comments
 (0)