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

Performs trashcan operations (delete or restore) on content blocks.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
elementId

The unique identifier of the page element

integer

Required

Body Parameters

The request containing the operation type and content block IDs

Itsolutions.Itslearning.Web.RestApi.Personal.Page.Requests.DeleteRestoreRequestUI
NameDescriptionTypeAdditional information
ContentBlockIds

The list of content block IDs to be moved in or out from trashcan.

Collection of integer

None.

IsDeleted

The boolean that describe the operation that needs to be done. If true, then the content blocks will be moved into trashcan, otherwise will be restored.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "contentBlockIds": [
    1,
    2
  ],
  "isDeleted": true
}

application/xml, text/xml

Sample:
<DeleteRestoreRequestUI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.Page.Requests">
  <ContentBlockIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ContentBlockIds>
  <IsDeleted>true</IsDeleted>
</DeleteRestoreRequestUI>

application/x-www-form-urlencoded

Sample:
No sample available

Response Information

Resource Description

Success response if the operation completes successfully

System.Web.Http.IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.