cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to call the migrate project api?

eric_hansen_wor
New Contributor

Iโ€™m getting errors when calling the migrate project to org, e.g. "The asset does not exist: projects/source"

Does anybody have examples of successful endpoints and JSON requests?

3 REPLIES 3

dmiller
Admin Admin
Admin

How are you trying to call the API?


Diane Miller
Community Manager

โ€œurlโ€: โ€œhttps://elastic.snaplogic.com/api/1/rest/public/project/migrate/projects/sourceโ€,
โ€œmethodโ€: โ€œPOSTโ€

Returns:

โ€œThe asset does not exist: /projects/sourceโ€

โ€œurlโ€: โ€œhttps://elastic.snaplogic.com/api/1/rest/public/project/migrate/{{OrgName}}/projects/sourceโ€,
โ€œmethodโ€: โ€œPOSTโ€

Returns:

โ€œExpecting type of asset [/{{OrgName}}/] to be Dir but was Orgโ€

Itโ€™s not clear from the documentation where/how to extract the correct values from the Manager and when I enter exact values from the activities API response it still cannot locate them.

dmiller
Admin Admin
Admin

Iโ€™ve let your TAM know and there is now an open ticket for the docs to be clarified.


Diane Miller
Community Manager