-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathactor-tasks@{actorTaskId}.yaml
More file actions
181 lines (177 loc) · 5.61 KB
/
actor-tasks@{actorTaskId}.yaml
File metadata and controls
181 lines (177 loc) · 5.61 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
get:
tags:
- Actor tasks
summary: Get task
description: Get an object that contains all the details about a task.
operationId: actorTask_get
parameters:
- name: actorTaskId
in: path
description: Task ID or a tilde-separated owner's username and task's name.
required: true
style: simple
schema:
type: string
example: janedoe~my-task
responses:
"200":
description: ""
headers: {}
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: ../../components/schemas/actor-tasks/Task.yaml
example:
data:
id: zdc3Pyhyz3m8vjDeM
userId: wRsJZtadYvn4mBZmm
actId: asADASadYvn4mBZmm
name: my-task
username: janedoe
createdAt: "2018-10-26T07:23:14.855Z"
modifiedAt: "2018-10-26T13:30:49.578Z"
removedAt: null
stats:
totalRuns: 15
options:
build: latest
timeoutSecs: 300
memoryMbytes: 128
input:
hello: world
"400":
$ref: ../../components/responses/BadRequest.yaml
deprecated: false
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-object/get-task
- https://docs.apify.com/api/v2#/reference/actor-tasks/get-task
- https://docs.apify.com/api/v2#tag/Actor-tasksTask-object/operation/actorTask_get
x-js-parent: TaskClient
x-js-name: get
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/TaskClient#get
x-py-parent: TaskClientAsync
x-py-name: get
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/TaskClientAsync#get
put:
tags:
- Actor tasks
summary: Update task
description: |
Update settings of a task using values specified by an object passed as JSON
in the POST payload.
If the object does not define a specific property, its value is not updated.
The response is the full task object as returned by the
[Get task](#/reference/tasks/task-object/get-task) endpoint.
The request needs to specify the `Content-Type: application/json` HTTP
header!
When providing your API authentication token, we recommend using the
request's `Authorization` header, rather than the URL. ([More
info](#/introduction/authentication)).
operationId: actorTask_put
parameters:
- name: actorTaskId
in: path
description: Task ID or a tilde-separated owner's username and task's name.
required: true
style: simple
schema:
type: string
example: janedoe~my-task
requestBody:
description: ""
content:
application/json:
schema:
$ref: ../../components/schemas/actor-tasks/UpdateTaskRequest.yaml
example:
name: my-task
options:
build: latest
timeoutSecs: 300
memoryMbytes: 128
input:
hello: world
required: true
responses:
"200":
description: ""
headers: {}
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
$ref: ../../components/schemas/actor-tasks/Task.yaml
example:
data:
id: zdc3Pyhyz3m8vjDeM
userId: wRsJZtadYvn4mBZmm
actId: asADASadYvn4mBZmm
name: my-task
username: janedoe
createdAt: "2018-10-26T07:23:14.855Z"
modifiedAt: "2018-10-26T13:30:49.578Z"
removedAt: null
stats:
totalRuns: 15
options:
build: latest
timeoutSecs: 300
memoryMbytes: 128
input:
hello: world
"400":
$ref: ../../components/responses/BadRequest.yaml
deprecated: false
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-object/update-task
- https://docs.apify.com/api/v2#/reference/actor-tasks/update-task
- https://docs.apify.com/api/v2#tag/Actor-tasksTask-object/operation/actorTask_put
x-js-parent: TaskClient
x-js-name: update
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/TaskClient#update
x-py-parent: TaskClientAsync
x-py-name: update
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/TaskClientAsync#update
delete:
tags:
- Actor tasks
summary: Delete task
description: Delete the task specified through the `actorTaskId` parameter.
operationId: actorTask_delete
parameters:
- name: actorTaskId
in: path
description: Task ID or a tilde-separated owner's username and task's name.
required: true
style: simple
schema:
type: string
example: janedoe~my-task
responses:
"204":
description: ""
headers: {}
content:
application/json:
schema:
type: object
example: {}
"400":
$ref: ../../components/responses/BadRequest.yaml
deprecated: false
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-object/delete-task
- https://docs.apify.com/api/v2#/reference/actor-tasks/delete-task
- https://docs.apify.com/api/v2#tag/Actor-tasksTask-object/operation/actorTask_delete
x-js-parent: TaskClient
x-js-name: delete
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/TaskClient#delete