POST restapi/personal/pages/{elementId}/contentblocks/rss/v1

Create a new RSS content block.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
elementId

The unique identifier of the page element

integer

Required

Body Parameters

The RSS content block creation request

Itsolutions.Itslearning.Web.RestApi.Personal.Page.Requests.CreateContentBlockRssRequestUI
NameDescriptionTypeAdditional information
RssUrl

The URL of the RSS feed to display in this content block.

string

None.

FeedsCount

The number of feed items to display from the RSS feed.

integer

None.

ShowSummary

Indicates whether to show the summary of each feed item.

boolean

None.

ContentBlockId

The unique identifier for the content block.

integer

None.

Type

The type of the content block (e.g. "text", "image", "files", "rss", "poll"). Defaults to an empty string.

string

None.

Title

The title of the content block. Defaults to an empty string.

string

None.

Order

The display order of the content block within its Layout Zone. Lower values appear first.

integer

None.

LayoutZone

The layout zone where the content block should be placed (e.g. "Left", "Right"). Determines the positioning within the page layout.

string

None.

Color

The color of the content block.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "rssUrl": "sample string 1",
  "feedsCount": 2,
  "showSummary": true,
  "contentBlockId": 4,
  "type": "sample string 5",
  "title": "sample string 6",
  "order": 7,
  "layoutZone": "sample string 8",
  "color": "sample string 9"
}

application/xml, text/xml

Sample:
<CreateContentBlockRssRequestUI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.Page.Requests">
  <Color>sample string 9</Color>
  <ContentBlockId>4</ContentBlockId>
  <LayoutZone>sample string 8</LayoutZone>
  <Order>7</Order>
  <Title>sample string 6</Title>
  <Type>sample string 5</Type>
  <FeedsCount>2</FeedsCount>
  <RssUrl>sample string 1</RssUrl>
  <ShowSummary>true</ShowSummary>
</CreateContentBlockRssRequestUI>

application/x-www-form-urlencoded

Sample:
No sample available

Response Information

Resource Description

Created RSS content block

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.