PUT restapi/personal/pages/{elementId}/contentblocks/{contentBlockId}/placement/v1
Updates the placement position of a content block within the page layout. Returns 404 if the block is not found or 403 if the user lacks permission.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| elementId |
The learning object identifier associated with the page. |
integer |
Required |
| contentBlockId |
The unique identifier of the content block to reposition. |
integer |
Required |
Body Parameters
The request containing the new column and sorting order values.
Itsolutions.Itslearning.Web.RestApi.Personal.Page.PageApiModels.Requests.UpdatePlacementRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Order | integer |
None. |
|
| LayoutZone | Itsolutions.Itslearning.Web.RestApi.Personal.Page.PageApiModels.Enums.LayoutZoneDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"order": 1,
"layoutZone": 1
}
application/xml, text/xml
Sample:
<UpdatePlacementRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.Page.PageApiModels.Requests"> <LayoutZone>Left</LayoutZone> <Order>1</Order> </UpdatePlacementRequest>
application/x-www-form-urlencoded
Sample:
No sample available
Response Information
Resource Description
The updated content block with the new placement information.
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.