Expand my Community achievements bar.

SOLVED

How to Update the source dataflow schedule time through API

Avatar

Level 4
Hello,
 
We need to update the source dataflow schedule time. I’m attempting this using AEP Flows API calls. For the request body, I’m using:
 
[
{
"op": "replace",
"path": "/scheduleParams/startTime",
"value": "1762482630000"
}
]
 
However, this approach isn’t working—I’m receiving a 412 Precondition Failed error. I am passing the flow ID and the If-Match (etag) header as required.
 
Could you please assist me in resolving this issue?
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@sheejo  I just tried with:

GET https://platform.adobe.io/data/foundation/flowservice/flows/:ID

to get the original details of the flow

 

Then used:

PATCH https://platform.adobe.io/data/foundation/flowservice/flows/:ID

 

.. with the following body (which is your original attempt):

 

[
{
"op": "replace",
"path": "/scheduleParams/startTime",
"value": "1763743872"
}
]
 
It works as long as you have the correct If-Match parameter, ie:
If-Match: "versionID" as taken from the first GET call.
 
Can you elaborate as to what error you get if the above does not work? Thanks
That 412 error is usually to do with pasting the etag in an incorrect format

View solution in original post

3 Replies

Avatar

Employee Advisor

@sheejo Would this work better?

 

[
  {
    "op": "replace",
    "path": "/scheduleParams",
    "value": {
      "startTime": 1762482630000
    }
  }
]

Avatar

Level 4

No, it is not working

Avatar

Correct answer by
Employee Advisor

@sheejo  I just tried with:

GET https://platform.adobe.io/data/foundation/flowservice/flows/:ID

to get the original details of the flow

 

Then used:

PATCH https://platform.adobe.io/data/foundation/flowservice/flows/:ID

 

.. with the following body (which is your original attempt):

 

[
{
"op": "replace",
"path": "/scheduleParams/startTime",
"value": "1763743872"
}
]
 
It works as long as you have the correct If-Match parameter, ie:
If-Match: "versionID" as taken from the first GET call.
 
Can you elaborate as to what error you get if the above does not work? Thanks
That 412 error is usually to do with pasting the etag in an incorrect format