uSync API for a single item

Hi :slight_smile:
Is there a way to get a single item and reImport it with uSync .
As for now, i want to make some AI tasks : Translations, SEO creation, Summarization… and this is the most straight forward I can think of feeding the IA engine, and push back a new content in Umbraco

Hi @cmwalolo

If you’ve enabled the uSync content handler, the files will be written to disk in the uSync folder. You can then manipulate them and make changes and re-import them as needed. I don’t know if you can automate this via an API if that is your intention?

The safer option may be to use the Umbraco content service to make the necessary changes but that depends on how you are integrating your AI engine.

Justin

It looks like there is a SyncService for uSync here:

Whether there’s anything in here you can use I don’t know…

For now I have a solution where i disassemble the block grid into pieces, and reassemble it after. But it’s heavy. The usync way structure is great, it can generates a Json that I can transform and it can write it back. So it would be great if I can target a specific Item.
My idea is to have a standalone app, to handle this, so I could have many sources for AI generation with connectors to an external app, where I can handle all configurations, and operations to be done on the content.
I’ll have a look into the API :slight_smile:

I see there is an Import for a single file, but no export. I guess I can manage this by playing around , as long i can find a public entry point :slight_smile:

You may be able to dive into the uSync source code to find something more granular than the SyncService, but I don’t know what is exposed or available. If you had the content handler enabled to save on export the file would always contains the latest anyway?