Pages

To publish page with open API<br>套用草擬中的變更到頁面

post/pages/{pageId}/publish

Request

  • Base URL
    https://open.shopline.io/v1
  • URL
    https://open.shopline.io/v1/pages/{pageId}/publish
  • Auth
    HTTP bearer

Path parameters

pageIdstring required

Page ID (The ID of the original page, not the draft page)<br>頁面ID(是原先頁面的ID, 並非草擬頁面的ID)

Response

OK

Example response

{
  "items": {
    "id": "623bf38ab1eba700352f4442",
    "created_at": "2019-12-30T09:16:46.142Z",
    "updated_at": "2019-12-30T09:16:46.142Z",
    "status": "active",
    "type": "section",
    "title_translations": {
      "zh-hant": "文字組合",
      "zh-cn": "文字组合",
      "en": "Text",
      "th": "ข้อความ",
      "vi": "Văn bản"
    },
    "content_translations": {
      "zh-hant": "文字組合",
      "zh-cn": "文字组合",
      "en": "Text",
      "th": "ข้อความ",
      "vi": "Văn bản"
    },
    "key": "about",
    "seo_title_translations": {
      "zh-hant": "文字組合",
      "zh-cn": "文字组合",
      "en": "Text",
      "th": "ข้อความ",
      "vi": "Văn bản"
    },
    "seo_description_translations": {
      "zh-hant": "文字組合",
      "zh-cn": "文字组合",
      "en": "Text",
      "th": "ข้อความ",
      "vi": "Văn bản"
    },
    "seo_keywords": "abc",
    "open_outside_window": true,
    "link": {
      "created_at": "2019-12-30T09:16:46.142+00:00",
      "updated_at": "2019-12-30T09:16:46.142+00:00"
    },
    "sections_order": [
      "623bdfd0779bb6003bab6e6d"
    ],
    "use_layout_engine_template": true
  }
}

Changes