logoBack to home screen

Creating Contents with REST

This document explains how to create new contents in a repository using ADx REST API. You can create either a single content or a batch of contents in one go.

  1. Log in to ADx.

  2. On the landing page, click the API link under repository where you want to create content(s):

    Swagger page opens, showing the available ADx endpoints. You have two options now - see Creating a single content and Creating multiple contents.

Creating a Single Content

  1. Find the /access.adx.content.repository_name/v1/content Create Content endpoint and expand it.

    To create folders, use the /access.adx.content.demo/v1/folder Create Folder endpoint.

  2. Attach the file to be a basis for your content in the resource field.

  3. Optionally, change other properties as required.

  4. Click Execute and check the response. A response with code 200 (success) means that the content is now created.

  5. Your content is now created, but it still has the WORKING_COPY status, meaning you need to check it in.

  6. Open the /access.adx.content.test/v1/content/checkin endpoint available under Versioning.

  7. Click Execute. Your content is now saved with the status CURRENT.

Creating Multiple Contents

  1. Find the /access.adx.content.repository_name/v1/contents Create Contents endpoint and expand it.
  2. Attach the files your contents should be created from in the resources field.
  3. Optionally, change other properties as required.
  4. Click Execute and check the response. A response with code 200 (success) means that the content is now created.
  5. Your contents are now created, but they still have the WORKING_COPY status, meaning you need to check them in.
  6. Open the /access.adx.content.repository_name/v1/content/checkin endpoint available under Versioning.
  7. Paste the new content technical ID into the contentId field.
  8. Click Execute. Your copied content is now saved with a new version, with the status CURRENT - repeat this operation for all contents.