Getting Items

You can get the public items in your Content Network through an API.

API Request Details

You would need the following information to get the items.
URL /api/v1/content/public/{parentItemId}
Request Type GET
Content Type application/json
Query Parameters Refer to the table below.
Query Parameters
Name Description Type Default Value Example
Permissions List the items that the user has specific permissions for.

String

The supported values are list, read, write, delete. Multiple values can be sent using the & operator.

list
  • Getting items on which the tenant has list permission: /api/v1/content/public/1?permissions=list
  • Getting items on which the tenant has read and write permission: /api/v1/content/public/1?permissions=read&permissions=write

itemType Specify the type of items needs to be fetched

String.

The supported values are:
  • PACKAGE
  • SUB-CATEGORY
  • ALL
ALL

Getting only the Folders: /api/v1/content/public/1?itemType=SUB-CATEGORY

tags Specifies the tag IDs to filter the items

String

Multiple values can be sent using "&" operator.

[]

Getting the items that has the specified tag ID (s):

<apiHost>/api/v1/content/public/1?tags=<tag_ID_1>&tags=<tag_ID_2>

You can check the supported tags with their IDs in Predefined Tags for Public Package.

Response

You can go to Status Codes to learn about the three-digit code in the response.