Content

Covered in this doc:

List content objects

List all content modules ever created within a Site

GET /api/v2/content/?site_id=12345

Parameters

Name

Type

Description

site_id

string

required ID of the Site you want to get the content object for

Response

{
  "meta": {
    "limit": 20,
    "next": "/api/v2/content/?limit=20&offset=20",
    "offset": 0,
    "previous": null,
    "total_count": 5
  },
  "objects": [
    {
      "added": "2012-06-01T09:28:46",
      "content": "<p>Here is the content of the module</p>",
      "content_clean": "<p>Here is the content of the module that has been cleaned up using various HTML filters to avoid unclosed tags and attributes</p>",
      "id": 328269,
      "modified": "2012-06-01T09:28:46",
      "resource_uri": "/api/v2/content/328269/",
      "site_id": 12345,
      "user_id": 54321
    },
    {
      "added": "2012-06-01T09:28:46",
      "content": "<p>Here is the content of the module</p>",
      "content_clean": "<p>Here is the content of the module that has been cleaned up using various HTML filters to avoid unclosed tags and attributes</p>",
      "id": 328270,
      "modified": "2012-06-01T09:28:46",
      "resource_uri": "/api/v2/content/328270/",
      "site_id": 12345,
      "user_id": 54321
    },
    ...
  ]
}

Last updated