Topic
  • 8 replies
  • Latest Post - ‏2010-04-05T15:33:11Z by kbauer
ClemmieMC
ClemmieMC
8 Posts

Pinned topic Adding comments to assets via the RAM API

‏2010-04-04T21:14:59Z |
Via the RAM UI, you can add comments to an asset on the Asset page after clicking "Collaboration" link in the left hand menu. Is there a RAM API that allows you to add a comment to an asset?
Updated on 2010-04-05T15:33:11Z at 2010-04-05T15:33:11Z by kbauer
  • kbauer
    kbauer
    22 Posts

    Re: Adding comments to assets via the RAM API

    ‏2010-04-04T23:02:10Z  
    There is API, but it was not added till 7.2.0.2
  • ClemmieMC
    ClemmieMC
    8 Posts

    Re: Adding comments to assets via the RAM API

    ‏2010-04-04T23:58:09Z  
    Thanks, again. I'm using 7.2.0.1. I'm curious. What is the API in 7.2.0.2? I'll probably have to use it whenever we upgrade.
  • kbauer
    kbauer
    22 Posts

    Re: Adding comments to assets via the RAM API

    ‏2010-04-05T03:05:19Z  
    The client is backward compatible with older severs.
  • ClemmieMC
    ClemmieMC
    8 Posts

    Re: Adding comments to assets via the RAM API

    ‏2010-04-05T03:47:34Z  
    Ok, but in the future I won't be using the client to add the comment. What API would I use in 7.2.0.2 to add a comment to an asset? Thanks.
  • kbauer
    kbauer
    22 Posts

    Re: Adding comments to assets via the RAM API

    ‏2010-04-05T13:41:58Z  
    • ClemmieMC
    • ‏2010-04-05T03:47:34Z
    Ok, but in the future I won't be using the client to add the comment. What API would I use in 7.2.0.2 to add a comment to an asset? Thanks.
    In 7.2.0.2 the client API is the only public API to add a comment.

    We have started creating REST API but the public REST API does not extend to comments in 7.2.0.2.
  • ClemmieMC
    ClemmieMC
    8 Posts

    Re: Adding comments to assets via the RAM API

    ‏2010-04-05T13:57:08Z  
    • kbauer
    • ‏2010-04-05T13:41:58Z
    In 7.2.0.2 the client API is the only public API to add a comment.

    We have started creating REST API but the public REST API does not extend to comments in 7.2.0.2.
    Can you let me know what the client API is to add a comment in 7.2.0.2?
  • ddbaron
    ddbaron
    3 Posts

    Re: Adding comments to assets via the RAM API

    ‏2010-04-05T14:56:08Z  
    • ClemmieMC
    • ‏2010-04-05T13:57:08Z
    Can you let me know what the client API is to add a comment in 7.2.0.2?
    You can review the client API here
  • kbauer
    kbauer
    22 Posts

    Re: Adding comments to assets via the RAM API

    ‏2010-04-05T15:33:11Z  
    • ddbaron
    • ‏2010-04-05T14:56:08Z
    You can review the client API here
    Yes from the link above you will get the example...

    //Get the current state history
    RAMStateHistory stateHistory = newAsset.getCurrentStateHistory();

    //Create a new comment
    RAMComment comment = new RAMComment();
    comment.setBody(“This asset looks great!”);

    //Add comment to the asset
    stateHistory.comment(comment);