Skip to content

Commit c72269e

Browse files
Carlo JavierGitHub Enterprise
authored andcommitted
Merge pull request #6537 from ens60013/PLATIR-49810/Update-Dataflows-API
PLATIR-49810/Add-Info-About-Start-Time [REVIEW]
2 parents 8e273e0 + 292fb89 commit c72269e

File tree

1 file changed

+46
-44
lines changed

1 file changed

+46
-44
lines changed

help/sources/tutorials/api/update-dataflows.md

Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This tutorial covers the steps for updating a dataflow, including its basic info
99

1010
>[!TIP]
1111
>
12-
>Your source connection and your target connection should be mapped to a single dataflow. You should not update your source and target connections separately, as the changes will not be reflected in their corresponding dataflow. If your use case requires an update of your source and target connections, then you must create a new pair of source and target connections, as well as a new dataflow.
12+
>Your source connection and your target connection should be mapped to a single dataflow. You should not update your source and target connections separately, as the changes will not be reflected in their corresponding dataflow. If your use case requires an update of your source and target connections, then you must create a new pair of source and target connections, as well as a new dataflow.
1313
1414
## Getting started
1515

@@ -171,7 +171,9 @@ To update your dataflow's run schedule, name, and description, perform a PATCH r
171171

172172
>[!IMPORTANT]
173173
>
174-
>The `If-Match` header is required when making a PATCH request. The value for this header is the unique version of the connection you want to update. The etag value updates with every successful update of a dataflow.
174+
>* The `If-Match` header is required when making a PATCH request. The value for this header is the unique version of the connection you want to update. The etag value updates with every successful update of a dataflow.
175+
>
176+
>* You cannot updated the `startTime` of a dataflow if the initially scheduled `startTime` has already occurred. This limitation applies to both enabled and disabled dataflows.
175177
176178
**API format**
177179

@@ -185,29 +187,29 @@ The following request updates your flow run schedule, as well as your dataflow's
185187

186188
```shell
187189
curl -X PATCH \
188-
'https://platform.adobe.io/data/foundation/flowservice/flows/2edc08ac-4df5-4fe6-936f-81a19ce92f5c' \
189-
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
190-
-H 'x-api-key: {API_KEY}' \
191-
-H 'x-gw-ims-org-id: {ORG_ID}' \
192-
-H 'x-sandbox-name: {SANDBOX_NAME}'
193-
-H 'If-Match: "1a0037e4-0000-0200-0000-602e06f60000"' \
194-
-d '[
195-
{
196-
"op": "replace",
197-
"path": "/scheduleParams/frequency",
198-
"value": "day"
199-
},
200-
{
201-
"op": "replace",
202-
"path": "/name",
203-
"value": "Database Dataflow Feb2021"
204-
},
205-
{
206-
"op": "replace",
207-
"path": "/description",
208-
"value": "Database dataflow for testing update API"
209-
}
210-
]'
190+
'https://platform.adobe.io/data/foundation/flowservice/flows/2edc08ac-4df5-4fe6-936f-81a19ce92f5c' \
191+
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
192+
-H 'x-api-key: {API_KEY}' \
193+
-H 'x-gw-ims-org-id: {ORG_ID}' \
194+
-H 'x-sandbox-name: {SANDBOX_NAME}'
195+
-H 'If-Match: "1a0037e4-0000-0200-0000-602e06f60000"' \
196+
-d '[
197+
{
198+
"op": "replace",
199+
"path": "/scheduleParams/frequency",
200+
"value": "day"
201+
},
202+
{
203+
"op": "replace",
204+
"path": "/name",
205+
"value": "Database Dataflow Feb2021"
206+
},
207+
{
208+
"op": "replace",
209+
"path": "/description",
210+
"value": "Database dataflow for testing update API"
211+
}
212+
]'
211213
```
212214

213215
| Property | Description |
@@ -243,25 +245,25 @@ The following request updates your dataflow's mapping set.
243245

244246
```shell
245247
curl -X PATCH \
246-
'https://platform.adobe.io/data/foundation/flowservice/flows/2edc08ac-4df5-4fe6-936f-81a19ce92f5c' \
247-
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
248-
-H 'x-api-key: {API_KEY}' \
249-
-H 'x-gw-ims-org-id: {ORG_ID}' \
250-
-H 'x-sandbox-name: {SANDBOX_NAME}'
251-
-H 'If-Match: "50014cc8-0000-0200-0000-6036eb720000"' \
252-
-d '[
253-
{
254-
"op": "replace",
255-
"path": "/transformations/0",
256-
"value": {
257-
"name": "Mapping",
258-
"params": {
259-
"mappingId": "c5f22f04e09f44498e528901546a83b1",
260-
"mappingVersion": 2
261-
}
262-
}
263-
}
264-
]'
248+
'https://platform.adobe.io/data/foundation/flowservice/flows/2edc08ac-4df5-4fe6-936f-81a19ce92f5c' \
249+
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
250+
-H 'x-api-key: {API_KEY}' \
251+
-H 'x-gw-ims-org-id: {ORG_ID}' \
252+
-H 'x-sandbox-name: {SANDBOX_NAME}'
253+
-H 'If-Match: "50014cc8-0000-0200-0000-6036eb720000"' \
254+
-d '[
255+
{
256+
"op": "replace",
257+
"path": "/transformations/0",
258+
"value": {
259+
"name": "Mapping",
260+
"params": {
261+
"mappingId": "c5f22f04e09f44498e528901546a83b1",
262+
"mappingVersion": 2
263+
}
264+
}
265+
}
266+
]'
265267
```
266268

267269
| Property | Description |

0 commit comments

Comments
 (0)