• 1 reply
  • Latest Post - ‏2010-04-05T15:40:18Z by kbauer
8 Posts

Pinned topic Publishing assets via API

‏2010-04-05T15:33:13Z |
I'm using RAM Is it possible to publish an asset that has already been submitted using the API? The documentation for RAMAsset.getAction() and setAction() doesn't list "publish" as one of the supported actions. Is this correct? I've tried to publish the asset, but with no luck. Is there another way of publishing a submitted asset?
Updated on 2010-04-05T15:40:18Z at 2010-04-05T15:40:18Z by kbauer
  • kbauer
    22 Posts

    Re: Publishing assets via API

    From the same API doc posted above...

    //Get the available lifecycle actions
    RAMAction[] actions = newAsset.getAvailableActions();

    list available actions.

    You can then set actions returned from this list and set it as...

    //Set the lifecycle action
    session.put(newAsset, new NullProgressMonitor());