How to "Replace Content of SmartObject"

You need to create a session token: check this topic, it maybe the same idea you are looking for.

http://forums.creativeclouddeveloper.com/t/how-do-you-place-an-image-from-the-local-file-system-using-batchplay/2407/16