Skip to content

Commit 635806c

Browse files
authored
feat(specs): ingestion partial update method changed to patch (#1564)
## 🧭 What and Why 🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-1280 Ingestion partial updates will use `PATCH` instead of `PUT`. ### Changes included: - `PUT` method changed to `PATCH` for partial updates.
1 parent ed1222f commit 635806c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

specs/ingestion/paths/authentications/authenticationID.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ get:
1616
'400':
1717
$ref: '../../../common/responses/BadRequest.yml'
1818

19-
put:
19+
patch:
2020
tags:
2121
- authentications
2222
summary: Update a authentication.

specs/ingestion/paths/destinations/destinationID.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ get:
1616
'400':
1717
$ref: '../../../common/responses/BadRequest.yml'
1818

19-
put:
19+
patch:
2020
tags:
2121
- destinations
2222
summary: Update a destination.

specs/ingestion/paths/sources/sourceID.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ get:
1616
'400':
1717
$ref: '../../../common/responses/BadRequest.yml'
1818

19-
put:
19+
patch:
2020
tags:
2121
- sources
2222
summary: Update a source.

specs/ingestion/paths/tasks/taskID.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ get:
1616
'400':
1717
$ref: '../../../common/responses/BadRequest.yml'
1818

19-
put:
19+
patch:
2020
tags:
2121
- tasks
2222
summary: Update a task.

tests/CTS/methods/requests/ingestion/updateAuthentication.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"request": {
1111
"path": "/1/authentications/6c02aeb1-775e-418e-870b-1faccd4b2c0f",
12-
"method": "PUT",
12+
"method": "PATCH",
1313
"body": {
1414
"name": "newName"
1515
}

tests/CTS/methods/requests/ingestion/updateDestination.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"request": {
1111
"path": "/1/destinations/6c02aeb1-775e-418e-870b-1faccd4b2c0f",
12-
"method": "PUT",
12+
"method": "PATCH",
1313
"body": {
1414
"name": "newName"
1515
}

tests/CTS/methods/requests/ingestion/updateSource.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"request": {
1111
"path": "/1/sources/6c02aeb1-775e-418e-870b-1faccd4b2c0f",
12-
"method": "PUT",
12+
"method": "PATCH",
1313
"body": {
1414
"name": "newName"
1515
}

tests/CTS/methods/requests/ingestion/updateTask.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"request": {
1111
"path": "/1/tasks/6c02aeb1-775e-418e-870b-1faccd4b2c0f",
12-
"method": "PUT",
12+
"method": "PATCH",
1313
"body": {
1414
"enabled": false
1515
}

0 commit comments

Comments
 (0)