PUT v1/pages/{id}/content
Use this method to batch update multiple content elements within a page. This is an expensive method and should be used only to update common items like Parent UUID or Titles. Important: Adding or Updating properties of an element grows the amount. of I/O operations against the database. In the request sample JSon provided we display updating title, removing the parent and updating the image of two elements simultaneously.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Page Unique Identifier where content elements exist |
string |
Required |
Body Parameters
Content Elements to be updated
Collection of ContentItemName | Description | Type | Additional information |
---|---|---|---|
parentItem |
This property will contain the UUID of any parent element of an item. Note that this only references elements and not pages |
string |
None. |
id |
Content Item Unique Identifier. |
string |
None. |
type |
Content Type UUID, this is the unique identifier that points to the content item type this item represents. |
string |
None. |
imageId |
Image UUID used for element background (Currently supported by buttons and image elements only). |
string |
None. |
selImageId |
Selected image UUID for selectable elements (Currently only supported by buttons) |
string |
None. |
pageLink |
Dynamic Page to load upon user interaction with this element. This only affects buttons of type dynamic button (button type id 1) |
string |
None. |
title |
Used for title based content types like buttons, phone number, web url and so on. |
string |
None. |
text |
Used by content type paragraph only. Stores the text for a paragraph. |
string |
None. |
disabled |
Set to true to disable this control from been published. |
boolean |
None. |
order |
Order in which the element appears in a stacked view like a column based layout. |
integer |
None. |
phoneNumber |
Use this property to store the phone number that will be used natively to initiate a phone call when the user interacts with the element. Only used by content type Phone Number |
string |
None. |
url |
Use this property to store the URL for a web link button, or a web view content type. |
string |
None. |
buttonType |
Button Type UUID, this property describes what kind of button this element represents. This property is only for content type button. |
string |
None. |
arg1 |
Use this property to store arbitrary information that should be sent to the device as additional information for a button. This is currently been used by different button types to specify parameters custom to the button and button type in context. This value is only available for buttons. |
string |
None. |
arg2 |
Use this property to store arbitrary information that should be sent to the device as additional information for a button. This is currently been used by different button types to specify parameters custom to the button and button type in context. This value is only available for buttons. |
string |
None. |
arg3 |
Use this property to store arbitrary information that should be sent to the device as additional information for a button. This is currently been used by different button types to specify parameters custom to the button and button type in context. This value is only available for buttons. |
string |
None. |
arg4 |
Use this property to store arbitrary information that should be sent to the device as additional information for a button. This is currently been used by different button types to specify parameters custom to the button and button type in context. This value is only available for buttons. |
string |
None. |
arg5 |
Use this property to store arbitrary information that should be sent to the device as additional information for a button. This is currently been used by different button types to specify parameters custom to the button and button type in context. This value is only available for buttons. |
string |
None. |
arg6 |
Use this property to store arbitrary information that should be sent to the device as additional information for a button. This is currently been used by different button types to specify parameters custom to the button and button type in context. This value is only available for buttons. |
string |
None. |
properties |
Use this collection to store standard and custom properties for any content type. Great examples of current data been store for elements in this collection are Button Width, Text Color and much more. |
Collection of ContentSetting |
None. |
precache |
Use this property to enable pre-caching of the image associated to this element on the end-user's device |
boolean |
None. |
buttonMode |
Use this property to control whether to display an image only button, text only Button or a combination of both. This property is only available for buttons. |
ButtonMode |
None. |
carouselItems | Collection of CarouselPage |
None. |
Request Formats
text/json, application/json
[ { "id": "8404cceb-7066-4ba5-9a88-f3761988657c", "title": "Change Title 1", "imageId": "cf34920c-405b-11e5-9410-89bb0c0c1a5b", "parent" : "" }, { "id": "a3666b4e-bc84-40e0-8352-acc7e07e37f1", "title": "Change Title 2", "imageId": "cf34920c-405b-11e5-9410-89bb0c0c1a5b", "parent" : "" } ]
Response Information
Resource Description
Returns regular response headers with the result of the operation
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |