{"id":771,"date":"2023-11-29T15:41:48","date_gmt":"2023-11-29T14:41:48","guid":{"rendered":"http:\/\/localhost\/wordpress\/?page_id=771"},"modified":"2025-04-07T13:50:52","modified_gmt":"2025-04-07T13:50:52","slug":"elements","status":"publish","type":"page","link":"https:\/\/ip1sms.com\/en\/developer\/elements\/","title":{"rendered":"Manage page elements"},"content":{"rendered":"<h1 class=\"wp-block-heading\" id=\"h-hantera-sid-element\">Manage page elements<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-reading-a-collection-of-landing-page-elements\">Reading a collection of landing page elements<\/h2>\n\n\n\n<p>Endpoint: <code>GET v2\/landings\/{landingId}\/elements<\/code><\/p>\n\n\n\n<p>This endpoint gives you a collection of the elements on a specific landing page. See data type definition below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-las-ett-specifikt-element\">Read a specific element<\/h2>\n\n\n\n<p>Endpoint: <code>GET v2\/landings\/{landingId}\/elements\/{elementId}<\/code><\/p>\n\n\n\n<p>This endpoint gives you a specific element on a landing page<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-uppdatera-ett-element\">Update an element<\/h2>\n\n\n\n<p>Endpoint: <code>PUT v2\/landings\/{landingId}\/elements\/{elementId}<\/code><\/p>\n\n\n\n<p>This endpoint allows you to update an element on a landing page and change stored data. Everything is replaced by new values.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-skapa-ett-nytt-element\">Create a new element<\/h2>\n\n\n\n<p>Endpoint:\u00a0<code>POST landings\/{landingId}\/elements<\/code><\/p>\n\n\n\n<p>This endpoint allows you to create a new landing page element.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-radera-ett-element\">Delete an element<\/h2>\n\n\n\n<p>Endpoint: <code>DELETE v2\/landings\/{landingId}\/elements\/{elementId}<\/code><\/p>\n\n\n\n<p>This endpoint allows you to remove an element on a landing page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-datatyp\">Data type<\/h2>\n\n\n\n<p>The common properties of all elements are described below.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{ &quot;type&quot;: &quot;Title&quot;, &quot;id&quot;: &quot;615d9a0b792a81c7e32841ef&quot;, &quot;order&quot;: 0, &quot;backgroundColor&quot;: &quot;#f7f7f7&quot;, &quot;foregroundColor&quot;: &quot;#111&quot;, &quot;padding&quot;: &quot;2&quot;, &quot;margin&quot; : &quot;2,0,2,0&quot;, &quot;textAlignment&quot;: &quot;Center&quot;, &quot;font&quot;: &quot;Roboto&quot;, &quot;content&quot;: &quot;Welcome to the landing page&quot;, &quot;level&quot;: 1, &quot;bold&quot;: false, &quot; italic&quot;: false, &quot;underline&quot;: false }\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-type\">type<\/h3>\n\n\n\n<p>The element&#039;s type. The example shows a title element.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-id\">id<\/h3>\n\n\n\n<p>The element&#039;s ID, used to refer to a specific element.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-order\">order<\/h3>\n\n\n\n<p>The order of the element on the page, the page is rendered in ascending order (the ID breaks the ties). Optional, the default is&nbsp;<code>null<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-backgroundcolor\">backgroundColor<\/h3>\n\n\n\n<p>The color used as the element&#039;s background (Specified in hexadecimal), if applicable. Default value is&nbsp;<code>#f7f7f7<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-foregroundcolor\">foregroundColor<\/h3>\n\n\n\n<p>The color used as the foreground of the element (Specified in hexadecimal), if applicable. Default value is&nbsp;<code>#111<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-padding\">padding<\/h3>\n\n\n\n<p>The padding added around the element. Either one (1) number for all pages, or four (4) numbers separated by commas in order (top, bottom, left, right). Any number from 0 to 8. Default is 2.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-margin\">margin<\/h3>\n\n\n\n<p>The margin around the element. Either one (1) number for all pages, or four (4) numbers separated by commas in order (top, bottom, left, right). Any number from 0 to 8. Default is 0.<\/p>","protected":false},"excerpt":{"rendered":"<p>Hantera sid-element Reading a collection of landing page elements Endpoint: GET v2\/landings\/{landingId}\/elements Denna endpoint ger dig en samling av elementen p\u00e5 en specifik landningssida. Se definitionen av datatyp nedan. L\u00e4s ett specifikt element Endpoint: GET v2\/landings\/{landingId}\/elements\/{elementId} Denna endpoint ger dig ett specifikt element p\u00e5 en landningssida Uppdatera ett element Endpoint: PUT v2\/landings\/{landingId}\/elements\/{elementId} Denna endpoint l\u00e5ter [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":382,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"developer.php","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-771","page","type-page","status-publish","hentry","category-api-dokumention"],"_links":{"self":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/comments?post=771"}],"version-history":[{"count":0,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/771\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/382"}],"wp:attachment":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/media?parent=771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/categories?post=771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/tags?post=771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}