PUT restapi/personal/pages/{elementId}/contentblocks/files/{contentBlockId}/v1

Update a poll content block.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
elementId

The unique identifier of the page element

integer

Required

contentBlockId

The unique identifier of the content block

integer

Required

Body Parameters

The poll content block update request

Itsolutions.Itslearning.Web.RestApi.Personal.Page.Requests.UpdateContentBlockFilesRequestUI
NameDescriptionTypeAdditional information
NewFiles

Collection of Itsolutions.Itslearning.Web.RestApi.Personal.FileUpload.UploadedTempFile

None.

DeletedFiles

Collection of integer

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:
{
  "newFiles": [
    {
      "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"
    }
  ],
  "deletedFiles": [
    1,
    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

Sample:
<UpdateContentBlockFilesRequestUI 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>
  <DeletedFiles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </DeletedFiles>
  <NewFiles 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>
  </NewFiles>
</UpdateContentBlockFilesRequestUI>

application/x-www-form-urlencoded

Sample:
No sample available

Response Information

Resource Description

Updated poll content block

System.Web.Http.IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.