{"id":467,"date":"2023-11-23T13:52:51","date_gmt":"2023-11-23T12:52:51","guid":{"rendered":"http:\/\/localhost\/wordpress\/?page_id=467"},"modified":"2025-04-07T13:50:35","modified_gmt":"2025-04-07T13:50:35","slug":"pages","status":"publish","type":"page","link":"https:\/\/ip1sms.com\/en\/developer\/pages\/","title":{"rendered":"Managing landingpages"},"content":{"rendered":"<h1 class=\"wp-block-heading\" id=\"h-hantera-landningssidor\">Managing landingpages<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-las-en-samling-av-landningssidor\">Reading a collection of landing pages<\/h2>\n\n\n\n<p>Endpoint: <code>GET \/v2\/landings<\/code><\/p>\n\n\n\n<p>This endpoint provides you with a collection of your landing pages. See the data type definition below..<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-las-en-enskild-landningssida\">Read an individual landing page<\/h2>\n\n\n\n<p>Endpoint: <code>Get \/v2\/landings\/{landingId}<\/code><\/p>\n\n\n\n<p>This endpoint gives you a single specific landing page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-uppdatera-en-landningssida\">Update a landing page<\/h2>\n\n\n\n<p>Endpoint: <code>PUT \/v2\/landings\/{landingId}<\/code><\/p>\n\n\n\n<p>This endpoint allows you to update a specific landing page, change the stored data. Everything except elements, views and links are replaced with the new data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-skapa-en-landningssida\">Create a landing page<\/h2>\n\n\n\n<p>Endpoint: <code>POST \/v2\/landings<\/code><\/p>\n\n\n\n<p>This endpoint allows you to create a new landing page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-radera-landningssida\">Delete landing page<\/h2>\n\n\n\n<p>Endpoint: <code>POST \/v2\/landings\/{landingId}<\/code><\/p>\n\n\n\n<p>This endpoint allows you to delete a specific landing page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-the-data-type\">The data type<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n{ &quot;id&quot;: &quot;615d9900792a81c7e32841ee&quot;, &quot;name&quot;: &quot;Welcome Page&quot;, &quot;views&quot;: { &quot;2021&quot;: 6, &quot;2021-10&quot;: 4, &quot;2021-10-19&quot;: 2, &quot;2021- 10-19 09:00:00&quot;: 1, &quot;2021-10-19 11:00:00&quot;: 1, &quot;2021-10-22&quot;: 2, &quot;2021-10-22 15:00:00&quot;: 2, &quot;2021-11&quot;: 2, &quot;2021-11-22&quot;: 2, &quot;2021-11-22 05:00:00&quot;: 2 }, &quot;link&quot;: &quot;https:\/\/landing.ip1.net \/615d9900792a81c7e32841ee&quot;, &quot;shortLink&quot;: &quot;https:\/\/url.ip1.net\/sdkkas&quot;, &quot;lastModified&quot;: &quot;2021-10-06T12:56:30.854Z&quot;, &quot;elements&quot;: [ { &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;0&quot;, &quot; textAlignment&quot;: &quot;Center&quot;, &quot;font&quot;: &quot;Roboto&quot;, &quot;content&quot;: &quot;Welcome to the Landing&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-id\">id<\/h3>\n\n\n\n<p>The ID of the landing page, used to reference it..<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-name\">name<\/h3>\n\n\n\n<p>The name of the landing page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-views\">views<\/h3>\n\n\n\n<p>The number of times the landing page has been viewed by end users. A dictionary with keys as parts of timestamps (year, month, day, hour), and values as number of times the landing page has been viewed by end users during that part of time. Example below:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code\"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\n{ &quot;2021&quot;: 6, &quot;2021-10&quot;: 4, &quot;2021-10-19&quot;: 2, &quot;2021-10-19 09:00:00&quot;: 1, &quot;2021-10-19 11:00: 00&quot;: 1, &quot;2021-10-22&quot;: 2, &quot;2021-10-22 15:00:00&quot;: 2, &quot;2021-11&quot;: 2, &quot;2021-11-22&quot;: 2, &quot;2021 -11-22 05:00:00&quot;: 2 }\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-link\">link<\/h3>\n\n\n\n<p>The link to where the page can be viewed..<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-shortlink\">shortLink<\/h3>\n\n\n\n<p>A shorter link that redirects to&nbsp;<em>link<\/em>This one is used in SMS campaigns.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-lastmodified\">lastModified<\/h3>\n\n\n\n<p>Timestamp of last modification to the landing page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-elements\">elements<\/h3>\n\n\n\n<p>A collection of the content elements on the landing page. More on these in \"Element types\". <a href=\"http:\/\/34.88.191.99\/utvecklare\/hantera-element\/\">Manage page elements<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Hantera landningssidor L\u00e4s en samling av landningssidor Endpoint: GET v2\/landings Denna endpoint ger dig en samling landningssidor f\u00f6r vilka du kan se definitionen av datatypen nedan. L\u00e4s en enskild landningssida Endpoint: GET v2\/landings\/{landingId} Denna endpoint ger dig en enda specifik landningssida. Uppdatera en landningssida Endpoint: PUT v2\/landings\/{landingId} Denna endpoint kan du uppdatera en specifik landningssida, [&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":[24],"class_list":["post-467","page","type-page","status-publish","hentry","category-api-dokumention","tag-landningssidor"],"_links":{"self":[{"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/467","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=467"}],"version-history":[{"count":0,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/pages\/467\/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=467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/categories?post=467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ip1sms.com\/en\/wp-json\/wp\/v2\/tags?post=467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}