-
Notifications
You must be signed in to change notification settings - Fork 208
Expand file tree
/
Copy pathrequest-queue-requests-batch.yaml
More file actions
233 lines (213 loc) · 9.73 KB
/
Copy pathrequest-queue-requests-batch.yaml
File metadata and controls
233 lines (213 loc) · 9.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
commonErrors: &commonErrors
"400":
$ref: ../../responses/BadRequest.yaml
"401":
$ref: ../../responses/Unauthorized.yaml
"403":
$ref: ../../responses/Forbidden.yaml
"404":
$ref: ../../responses/NotFound.yaml
"405":
$ref: ../../responses/MethodNotAllowed.yaml
"429":
$ref: ../../responses/TooManyRequests.yaml
sharedTagById: &sharedTagById
tags:
- Storage/Request queues
sharedTagDefault: &sharedTagDefault
tags:
- Default request queue
sharedTagLastRun: &sharedTagLastRun
tags:
- Last Actor run's default request queue
sharedTagTaskLastRun: &sharedTagTaskLastRun
tags:
- Last Actor task run's default request queue
sharedPost: &sharedPost
requestBody:
description: ""
content:
application/json:
schema:
type: array
items:
$ref: ../../schemas/request-queues/RequestWithoutId.yaml
description: ""
required: true
responses:
"201":
description: ""
headers: {}
content:
application/json:
schema:
$ref: ../../schemas/request-queues/BatchAddResponse.yaml
<<: *commonErrors
"413":
$ref: ../../responses/PayloadTooLarge.yaml
"415":
$ref: ../../responses/UnsupportedMediaType.yaml
deprecated: false
postById:
<<: [*sharedPost, *sharedTagById]
summary: Add requests
description: |
Adds requests to the queue in batch. The maximum requests in batch is limited
to 25. The response contains an array of unprocessed and processed requests.
If any add operation fails because the request queue rate limit is exceeded
or an internal failure occurs,
the failed request is returned in the unprocessedRequests response
parameter.
You can resend these requests to add. It is recommended to use an
exponential backoff algorithm for these retries.
If a request with the same `uniqueKey` was already present in the queue,
then it returns an ID of the existing request.
operationId: requestQueue_requests_batch_post
parameters:
- $ref: "../../parameters/requestQueueParameters.yaml#/queueId"
- $ref: "../../parameters/requestQueueParameters.yaml#/clientKey"
- $ref: "../../parameters/requestQueueParameters.yaml#/forefront"
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/request-queues/batch-request-operations/add-requests
- https://docs.apify.com/api/v2#/reference/request-queues/add-requests
- https://docs.apify.com/api/v2#tag/Request-queuesBatch-request-operations/operation/requestQueue_requests_batch_post
x-js-parent: RequestQueueClient
x-js-name: batchAddRequests
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/RequestQueueClient#batchAddRequests
x-py-parent: RequestQueueClientAsync
x-py-name: batch_add_requests
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/RequestQueueClientAsync#batch_add_requests
postDefault:
<<: [*sharedPost, *sharedTagDefault]
summary: Batch add requests to default request queue
description: |
Adds requests to the default request queue of the Actor run in batch.
This endpoint is a shortcut for getting the run's `defaultRequestQueueId` and then using the
[Add requests](/api/v2/request-queue-requests-batch-post) endpoint.
operationId: actorRun_requestQueue_requests_batch_post
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/runId"
- $ref: "../../parameters/requestQueueParameters.yaml#/clientKey"
- $ref: "../../parameters/requestQueueParameters.yaml#/forefront"
postLastRun:
<<: [*sharedPost, *sharedTagLastRun]
summary: Batch add requests to last run's default request queue
description: |
Adds requests to the default request queue of the last Actor run in batch.
This endpoint is a shortcut for getting the last run's `defaultRequestQueueId` and then using the
[Add requests](/api/v2/request-queue-requests-batch-post) endpoint.
operationId: act_runs_last_requestQueue_requests_batch_post
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/actorId"
- $ref: "../../parameters/runAndBuildParameters.yaml#/statusLastRun"
- $ref: "../../parameters/runAndBuildParameters.yaml#/originLastRun"
- $ref: "../../parameters/requestQueueParameters.yaml#/clientKey"
- $ref: "../../parameters/requestQueueParameters.yaml#/forefront"
postTaskLastRun:
<<: [*sharedPost, *sharedTagTaskLastRun]
summary: Batch add requests to last task run's default request queue
description: |
Adds requests to the default request queue of the last Actor task run in batch.
This endpoint is a shortcut for getting the last task run's `defaultRequestQueueId` and then using the
[Add requests](/api/v2/request-queue-requests-batch-post) endpoint.
operationId: actorTask_runs_last_requestQueue_requests_batch_post
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/actorTaskId"
- $ref: "../../parameters/runAndBuildParameters.yaml#/statusLastRun"
- $ref: "../../parameters/runAndBuildParameters.yaml#/originLastRun"
- $ref: "../../parameters/requestQueueParameters.yaml#/clientKey"
- $ref: "../../parameters/requestQueueParameters.yaml#/forefront"
sharedDelete: &sharedDelete
requestBody:
description: ""
content:
application/json:
schema:
type: array
items:
$ref: ../../schemas/request-queues/RequestDraftDelete.yaml
required: true
responses:
"200":
description: ""
headers: {}
content:
application/json:
schema:
$ref: ../../schemas/request-queues/BatchDeleteResponse.yaml
<<: *commonErrors
"413":
$ref: ../../responses/PayloadTooLarge.yaml
"415":
$ref: ../../responses/UnsupportedMediaType.yaml
deprecated: false
deleteById:
<<: [*sharedDelete, *sharedTagById]
summary: Delete requests
description: |
Batch-deletes given requests from the queue. The number of requests in a
batch is limited to 25. The response contains an array of unprocessed and
processed requests.
If any delete operation fails because the request queue rate limit is
exceeded or an internal failure occurs,
the failed request is returned in the `unprocessedRequests` response
parameter.
You can re-send these delete requests. It is recommended to use an
exponential backoff algorithm for these retries.
Each request is identified by its ID or uniqueKey parameter. You can use
either of them to identify the request.
operationId: requestQueue_requests_batch_delete
parameters:
- $ref: "../../parameters/requestQueueParameters.yaml#/queueId"
- $ref: "../../parameters/requestQueueParameters.yaml#/contentTypeJson"
- $ref: "../../parameters/requestQueueParameters.yaml#/clientKey"
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/request-queues/batch-request-operations/delete-requests
- https://docs.apify.com/api/v2#/reference/request-queues/delete-requests
- https://docs.apify.com/api/v2#tag/Request-queuesBatch-request-operations/operation/requestQueue_requests_batch_delete
x-js-parent: RequestQueueClient
x-js-name: batchDeleteRequests
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/RequestQueueClient#batchDeleteRequests
x-py-parent: RequestQueueClientAsync
x-py-name: batch_delete_requests
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/RequestQueueClientAsync#batch_delete_requests
deleteDefault:
<<: [*sharedDelete, *sharedTagDefault]
summary: Batch delete requests from default request queue
description: |
Batch-deletes requests from the default request queue of the Actor run.
This endpoint is a shortcut for getting the run's `defaultRequestQueueId` and then using the
[Delete requests](/api/v2/request-queue-requests-batch-delete) endpoint.
operationId: actorRun_requestQueue_requests_batch_delete
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/runId"
- $ref: "../../parameters/requestQueueParameters.yaml#/contentTypeJson"
- $ref: "../../parameters/requestQueueParameters.yaml#/clientKey"
deleteLastRun:
<<: [*sharedDelete, *sharedTagLastRun]
summary: Batch delete requests from last run's default request queue
description: |
Batch-deletes requests from the default request queue of the last Actor run.
This endpoint is a shortcut for getting the last run's `defaultRequestQueueId` and then using the
[Delete requests](/api/v2/request-queue-requests-batch-delete) endpoint.
operationId: act_runs_last_requestQueue_requests_batch_delete
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/actorId"
- $ref: "../../parameters/runAndBuildParameters.yaml#/statusLastRun"
- $ref: "../../parameters/runAndBuildParameters.yaml#/originLastRun"
- $ref: "../../parameters/requestQueueParameters.yaml#/contentTypeJson"
- $ref: "../../parameters/requestQueueParameters.yaml#/clientKey"
deleteTaskLastRun:
<<: [*sharedDelete, *sharedTagTaskLastRun]
summary: Batch delete requests from last task run's default request queue
description: |
Batch-deletes requests from the default request queue of the last Actor task run.
This endpoint is a shortcut for getting the last task run's `defaultRequestQueueId` and then using the
[Delete requests](/api/v2/request-queue-requests-batch-delete) endpoint.
operationId: actorTask_runs_last_requestQueue_requests_batch_delete
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/actorTaskId"
- $ref: "../../parameters/runAndBuildParameters.yaml#/statusLastRun"
- $ref: "../../parameters/runAndBuildParameters.yaml#/originLastRun"
- $ref: "../../parameters/requestQueueParameters.yaml#/contentTypeJson"
- $ref: "../../parameters/requestQueueParameters.yaml#/clientKey"