Skip to content

Commit f2e304c

Browse files
committed
chore: replaceTask
1 parent 2b3a2d8 commit f2e304c

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

specs/ingestion/common/schemas/task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ TaskCreateResponse:
179179
- taskID
180180
- createdAt
181181

182-
TaskFullUpdate:
182+
TaskReplace:
183183
type: object
184184
additionalProperties: false
185185
description: API request body for updating a task.

specs/ingestion/paths/tasks/v2/taskID.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ put:
2525
- tasks
2626
summary: Fully updates a task
2727
description: Fully updates a task by its ID, use partialUpdateTask if you only want to update a subset of fields.
28-
operationId: fullUpdateTask
28+
operationId: replaceTask
2929
parameters:
3030
- $ref: '../../../common/parameters.yml#/pathTaskID'
3131
requestBody:
3232
content:
3333
application/json:
3434
schema:
35-
$ref: '../../../common/schemas/task.yml#/TaskFullUpdate'
35+
$ref: '../../../common/schemas/task.yml#/TaskReplace'
3636
required: true
3737
responses:
3838
'200':

tests/CTS/requests/ingestion/fullUpdateTask.json renamed to tests/CTS/requests/ingestion/replaceTask.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"testName": "fully replace task without cron",
44
"parameters": {
55
"taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
6-
"taskFullUpdate": {
6+
"taskReplace": {
77
"destinationID": "destinationID",
88
"action": "replace"
99
}
@@ -21,7 +21,7 @@
2121
"testName": "fully replace task with cron",
2222
"parameters": {
2323
"taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
24-
"taskFullUpdate": {
24+
"taskReplace": {
2525
"destinationID": "destinationID",
2626
"cron": "* * * * *",
2727
"action": "replace",
@@ -57,18 +57,18 @@
5757
"testName": "fully replace task shopify",
5858
"parameters": {
5959
"taskID": "6c02aeb1-775e-418e-870b-1faccd4b2c0f",
60-
"taskFullUpdate": {
61-
"destinationID": "destinationID",
62-
"cron": "* * * * *",
63-
"action": "replace",
64-
"input": {
65-
"streams": [
66-
{
67-
"name": "foo",
68-
"syncMode": "incremental"
69-
}
70-
]
71-
}
60+
"taskReplace": {
61+
"destinationID": "destinationID",
62+
"cron": "* * * * *",
63+
"action": "replace",
64+
"input": {
65+
"streams": [
66+
{
67+
"name": "foo",
68+
"syncMode": "incremental"
69+
}
70+
]
71+
}
7272
}
7373
},
7474
"request": {

0 commit comments

Comments
 (0)