REST API - Content Sections

Version 2

    The REST API provides access to create, retrieve, update and delete content sections.

     

    Accessing Content Sections

    • GET  /assets/contentSection/{id}?depth={depth}

     

    Response

    The response for this call looks as follows :

     

    {
      "type": "ContentSection",
      "id": "3645",
      "createdAt": "1352672507",
      "createdBy": "340",
      "depth": "complete",
      "folderId": "320",
      "name": "sample content",
      "updatedAt": "1352672507",
      "updatedBy": "340",
      "contentHtml": "<html><head><\/head><body>sample content<\/body><\/html>",
      "contentText": "sample content",
      "scope": "global",
      "size": {
        "type": "Size",
        "width": "0",
        "height": "0"
      }
    }
    

     

    Properties

     

    Name

    Type

    Description

    Notes

    Validations

    type"ContentSection"
    contentHtmlstringThe raw HTML for the content
    contentTextstring
    scopeScopeEnumRequirement
    sizeSize
    accessedAtintegerDateRequirement
    createdAtintegerReadOnlyDateRequirement
    createdByintegerReadOnlyIdRequirement
    currentStatusstring
    depthRequestDepthEnumRequirement
    descriptionString
    folderIdintegerIdRequirement
    idintegerThe unique identifier for the content sectionIdRequirement
    namestring
    permissionsInstancePermissionsEnumRequirement
    scheduledForintegerDateRequirement
    sourceTemplateIdstring
    updatedAtintegerReadOnlyDateRequirement
    updatedByintegerReadOnlyIdRequirement

     

    Related Operations

    • POST :  /assets/contentSection
    • PUT :  /assets/contentSection/{id}
    • DELETE :  /assets/contentSection/{id}
    • GET (list) :  /assets/contentSections?depth={depth}&search={searchTerm}&page={page}&count={count}