1 Reply Latest reply: Feb 8, 2013 1:49 AM by Rodney RSS

    Add new content through REST API

    MichaelBaygeldin
      Hello experts.
      Currently I am studying REST API for WebCenter Sites, but I can't understand one thing: is there any way to ADD some content to repository through REST API?
      And if it's possible, how can I achieve this?

      I have read docs and I know how to get some content:
      /sites/{sitename}/types/{assettype}/assets/{id}
      But how to add some asset (for example article)?
      And should I know article id beforehand? Or can I add some asset and then get its id?
        • 1. Re: Add new content through REST API
          Rodney
          Hi Michael,
          Did you check the samples provided with the installation files? The samples should be somewhere in: \misc\Samples\WEM Samples\REST API samples

          You would be interested in the samples in the flexassets directory. There are four types of samples:
          1. CreateAsset.java
          2. DeleteAsset.java
          3. ReadAsset.java
          4. UpdateAsset.java

          Hope this helps.

          Rodney