POST restapi/personal/pages/{elementId}/contentblocks/images/v1
Create a new images content block.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| elementId |
The unique identifier of the page element |
integer |
Required |
Body Parameters
The images content block creation request
Itsolutions.Itslearning.Web.RestApi.Personal.Page.Requests.CreateContentBlockImagesRequestUI| Name | Description | Type | Additional information |
|---|---|---|---|
| Images |
The collection of temporary images that have been uploaded for this content block. Defaults to an empty list. |
Collection of Itsolutions.Itslearning.Web.RestApi.Personal.Page.Requests.ImageItem |
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
{
"images": [
{
"imageFile": {
"fileRepoId": "sample string 1",
"signedFileRepoId": "sample string 2",
"name": "sample string 3",
"mimeType": "sample string 4"
},
"altText": "sample string 1",
"caption": "sample string 2"
},
{
"imageFile": {
"fileRepoId": "sample string 1",
"signedFileRepoId": "sample string 2",
"name": "sample string 3",
"mimeType": "sample string 4"
},
"altText": "sample string 1",
"caption": "sample string 2"
}
],
"contentBlockId": 1,
"type": "sample string 2",
"title": "sample string 3",
"order": 4,
"layoutZone": "sample string 5",
"color": "sample string 6"
}
application/xml, text/xml
<CreateContentBlockImagesRequestUI 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 6</Color>
<ContentBlockId>1</ContentBlockId>
<LayoutZone>sample string 5</LayoutZone>
<Order>4</Order>
<Title>sample string 3</Title>
<Type>sample string 2</Type>
<Images>
<ImageItem>
<AltText>sample string 1</AltText>
<Caption>sample string 2</Caption>
<ImageFile xmlns:d4p1="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.FileUpload">
<d4p1:FileRepoId>sample string 1</d4p1:FileRepoId>
<d4p1:MimeType>sample string 4</d4p1:MimeType>
<d4p1:Name>sample string 3</d4p1:Name>
<d4p1:SignedFileRepoId>sample string 2</d4p1:SignedFileRepoId>
</ImageFile>
</ImageItem>
<ImageItem>
<AltText>sample string 1</AltText>
<Caption>sample string 2</Caption>
<ImageFile xmlns:d4p1="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.FileUpload">
<d4p1:FileRepoId>sample string 1</d4p1:FileRepoId>
<d4p1:MimeType>sample string 4</d4p1:MimeType>
<d4p1:Name>sample string 3</d4p1:Name>
<d4p1:SignedFileRepoId>sample string 2</d4p1:SignedFileRepoId>
</ImageFile>
</ImageItem>
</Images>
</CreateContentBlockImagesRequestUI>
application/x-www-form-urlencoded
No sample available
Response Information
Resource Description
Created images content block
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.