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