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

Create a new text content block.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
elementId

The unique identifier of the page element

integer

Required

Body Parameters

The text content block creation request

Itsolutions.Itslearning.Web.RestApi.Personal.Page.Requests.CreateContentBlockTextRequestUI
NameDescriptionTypeAdditional information
Text

The text content to display in this content block. Can contain formatted text or plain text.

string

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:
{
  "text": "sample string 1",
  "contentBlockId": 2,
  "type": "sample string 3",
  "title": "sample string 4",
  "order": 5,
  "layoutZone": "sample string 6",
  "color": "sample string 7"
}

application/xml, text/xml

Sample:
<CreateContentBlockTextRequestUI 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 7</Color>
  <ContentBlockId>2</ContentBlockId>
  <LayoutZone>sample string 6</LayoutZone>
  <Order>5</Order>
  <Title>sample string 4</Title>
  <Type>sample string 3</Type>
  <Text>sample string 1</Text>
</CreateContentBlockTextRequestUI>

application/x-www-form-urlencoded

Sample:
No sample available

Response Information

Resource Description

Created text content block

System.Web.Http.IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.