Skip to content

Commit d75f4ac

Browse files
committed
docs: Updated added the sortBy parameter for get acts/ to reflect the changes made on apify-core: apify-core: #20997
1 parent 2dd6c3e commit d75f4ac

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 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,17 @@ 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+
style: form
70+
explode: true
71+
schema:
72+
type: string
73+
enum: [createdAt, lastRunStartedAt]
74+
example: createdAt
6175
responses:
6276
'200':
6377
description: ''

0 commit comments

Comments
 (0)