HI All,
has anyone tried to access journey using API's and edit them to create a new duplicate journey and publish it?.
I have only found this documentation about Journeys API covering only capping and throttling API's- https://developer.adobe.com/journey-optimizer-apis/references/journeys/
Tried raising a Adobe ticket and got this as response -
-------------------------------------------------------------------------------------
How to Duplicate a Journey
1.Retrieve the Original Journey:
Use the Journey Orchestration API to get the journey details with a GET request to the journeyPrivateObject endpoint using your journey ID.
2.Modify the Journey Details:
•Remove unique identifiers (like the id field).
•Update the name (e.g., add “- Copy” to distinguish it).
•Set the status to “draft.”
•Remove any timestamps related to creation/modification.
3.Create the New Journey:
Send the modified payload as a POST request to the journeyPrivateObject endpoint to create the duplicate journey.
API Authentication
Make sure your requests include:
•Your Organization ID (x-gw-ims-org-id header)
•API Key (x-api-key header)
•Access Token (Authorization: Bearer {token} header)
A Few Things to Keep in Mind
•The duplicated journey will start in draft mode, so you’ll need to publish it separately.
•Ensure all referenced events, schemas, and data elements exist in your environment.
•If your journey includes custom actions, you may need to reconfigure them.
•Always test the duplicated journey before going live.
--------------------------------------------------------------------------------------------------------------------
They call it as journey orchestration API. But there isn't anything like it in internet.
Tried this URL with API-key, orgID, Access token, sandbox name -https://platform.adobe.io/journey/orchestration/endpointConfigs/{journeyID}
but the response was ( The API-key is working for other API's )
{
"error_code": "403003",
"message": "Api Key is invalid"
}
Don't know what permissions are required to do this. But If anyone have already implemented that It would be helpful.