Content Control

The ContentController interface allows developers to define and manage specific content items in the HCL Portal.


ContentController is a Web Content API that provides a way for developers to get information or execute requests regarding managing specific content items in the HCL Portal.

Methods and Response Formats

Table 1. ContentController Interface
Method and response format Remarks
PUT /webcontent/contents/{contentId} updates the Content identified by the ContentId (mentioned in the path) with the Content object in the request body.
DELETE /webcontent/contents/{contentId} Deletes the content from the HCL Portal server.
POST /webcontent/contents Create content microservice API.
GET /{accessType}/webcontent/contents/render/{contentId} Used to access or render created content in the form of html.
GET /{accessType}/webcontent/contents/{contentId} reads content item from the HCL Portal server.


The request must be a standard HTTP GET, POST, PUT or DELETE command.

Table 2. Additional Parameters
Name Description
Cookie Access token for authentication fetched from Cookie.
virtualportal Virtual portal to which the request needs to be sent to.
contentId The Content Id.
accessType Base URL to invoke different contenthandler

Response Codes

Table 3. Response Codes
Code Description
200 OK.
400 Bad request
401 Unauthorized request
404 Request not found
422 Unprocessable entity (WebDAV)
500 Internal server error