-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathdataset.yaml
More file actions
225 lines (200 loc) · 7.18 KB
/
dataset.yaml
File metadata and controls
225 lines (200 loc) · 7.18 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
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
sharedGet: &sharedGet
responses:
<<: *commonErrors
"200":
description: ""
headers: {}
content:
application/json:
schema:
$ref: ../../schemas/datasets/DatasetResponse.yaml
deprecated: false
getById:
<<: *sharedGet
tags:
- Storage/Datasets
summary: Get dataset
description: |
Returns dataset object for given dataset ID.
This does not return dataset items, only information about the storage itself.
To retrieve dataset items, use the [List dataset items](/api/v2/dataset-items-get) endpoint.
:::note
Keep in mind that attributes `itemCount` and `cleanItemCount` are not propagated right away after data are pushed into a dataset.
:::
There is a short period (up to 5 seconds) during which these counters may not match with exact counts in dataset items.
operationId: dataset_get
parameters:
- $ref: "../../parameters/storageParameters.yaml#/datasetId"
- name: token
in: query
description: |
API authentication token. It is required only when using the `username~dataset-name` format for `datasetId`.
style: form
explode: true
schema:
type: string
example: soSkq9ekdmfOslopH
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/datasets/dataset/get-dataset
- https://docs.apify.com/api/v2#/reference/datasets/get-dataset
- https://docs.apify.com/api/v2#tag/DatasetsDataset/operation/dataset_get
x-js-parent: DatasetClient
x-js-name: get
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/DatasetClient#get
x-py-parent: DatasetClientAsync
x-py-name: get
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/DatasetClientAsync#get
getDefault:
<<: *sharedGet
tags:
- Default storages
summary: Get default dataset
description: |
Returns the default dataset associated with an Actor run.
This endpoint is a shortcut for getting the run's `defaultDatasetId` and then using the
[Get dataset](/api/v2/dataset-get) endpoint.
operationId: actorRun_dataset_get
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/runId"
getLastRun:
<<: *sharedGet
tags:
- Last Actor run
summary: Get last run's default dataset
description: |
Returns the default dataset associated with the last Actor run.
This endpoint is a shortcut for getting the last run's `defaultDatasetId` and then using the
[Get dataset](/api/v2/dataset-get) endpoint.
operationId: act_runs_last_dataset_get
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/actorId"
- $ref: "../../parameters/runAndBuildParameters.yaml#/statusLastRun"
sharedPut: &sharedPut
requestBody:
description: ""
content:
application/json:
schema:
$ref: ../../schemas/datasets/UpdateDatasetRequest.yaml
required: true
responses:
<<: *commonErrors
"200":
description: ""
headers: {}
content:
application/json:
schema:
$ref: ../../schemas/datasets/DatasetResponse.yaml
"413":
$ref: ../../responses/PayloadTooLarge.yaml
"415":
$ref: ../../responses/UnsupportedMediaType.yaml
deprecated: false
putById:
<<: *sharedPut
tags:
- Storage/Datasets
summary: Update dataset
description: |
Updates a dataset's name and general resource access level using a value specified by a JSON object passed in the PUT payload.
The response is the updated dataset object, as returned by the [Get dataset](/api/v2/dataset-get) API endpoint.
operationId:
dataset_put
parameters:
- $ref: "../../parameters/storageParameters.yaml#/datasetId"
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/datasets/dataset/update-dataset
- https://docs.apify.com/api/v2#/reference/datasets/update-dataset
- https://docs.apify.com/api/v2#tag/DatasetsDataset/operation/dataset_put
x-js-parent: DatasetClient
x-js-name: update
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/DatasetClient#update
x-py-parent: DatasetClientAsync
x-py-name: update
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/DatasetClientAsync#update
putDefault:
<<: *sharedPut
tags:
- Default storages
summary: Update default dataset
description: |
Updates the default dataset associated with an Actor run.
This endpoint is a shortcut for getting the run's `defaultDatasetId` and then using the
[Put dataset](/api/v2/dataset-put) endpoint.
operationId: actorRun_dataset_put
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/runId"
putLastRun:
<<: *sharedPut
tags:
- Last Actor run
summary: Update last run's default dataset
description: |
Updates the default dataset associated with the last Actor run.
This endpoint is a shortcut for getting the last run's `defaultDatasetId` and then using the
[Update dataset](/api/v2/dataset-put) endpoint.
operationId: act_runs_last_dataset_put
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/actorId"
- $ref: "../../parameters/runAndBuildParameters.yaml#/statusLastRun"
sharedDelete: &sharedDelete
responses:
<<: *commonErrors
"204":
$ref: ../../responses/NoContent.yaml
deprecated: false
deleteById:
<<: *sharedDelete
tags:
- Storage/Datasets
summary: Delete dataset
description: Deletes a specific dataset.
operationId: dataset_delete
parameters:
- $ref: "../../parameters/storageParameters.yaml#/datasetId"
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/datasets/dataset/delete-dataset
- https://docs.apify.com/api/v2#/reference/datasets/delete-dataset
- https://docs.apify.com/api/v2#tag/DatasetsDataset/operation/dataset_delete
x-js-parent: DatasetClient
x-js-name: delete
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/DatasetClient#delete
deleteDefault:
<<: *sharedDelete
tags:
- Default storages
summary: Delete default dataset
description: |
Deletes default dataset associated with an Actor run.
This endpoint is a shortcut for getting the last run's `defaultDatasetId` and then using the
[ Delete dataset ](/api/v2/dataset-delete) endpoint.
operationId: actorRun_dataset_delete
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/runId"
deleteLastRun:
<<: *sharedDelete
tags:
- Last Actor run
summary: Delete last run's default dataset
description: |
Deletes the default dataset associated with the last Actor run.
This endpoint is a shortcut for getting the last run's `defaultDatasetId` and then using the
[Delete dataset](/api/v2/dataset-delete) endpoint.
operationId: act_runs_last_dataset_delete
parameters:
- $ref: "../../parameters/runAndBuildParameters.yaml#/actorId"
- $ref: "../../parameters/runAndBuildParameters.yaml#/statusLastRun"