Update Website Button Widget

Description

You can use this API to update the website button widget.

URL

Copiedhttps://salesiq.zoho.com/api/v2/{screenname}/apps/{app id}/website/widgets/button

Example

Copiedhttps://salesiq.zoho.com/api/v2/betaenabled/apps/51841000003484047/website/widgets/button

Payload

Copied{
  "hide_when_offline": "false",
  "custom_color": {
    "code": "9be1e3a8a198db39a51fc0f5f412ec5a991ae99e5e19614dde099fb6d6f8152f",
    "is_enabled": "false"
  },
  "font": "default",
  "hide_in_mobile_device": "false",
  "offline_headers": {
    "sub_header": "Submit message",
    "action": "",
    "header": "We are offline"
  },
  "color": "#238de9",
  "custom_sticker": {
    "is_enabled": "false"
  },
  "online_headers": {
    "sub_header": "Submit message",
    "action": "",
    "header": "We are offline"
  }
}

Success Response

Copied{
  "url": "/api/v2/zylker-inc/apps/51841000003484047/website/widgets/button",
  "object": "buttonwidget",
  "data": {
    "modified_time": "1525713302110",
    "hide_when_offline": "false",
    "custom_color": {
      "code": "",
      "is_enabled": "false"
    },
    "font": "default",
    "hide_in_mobile_device": "false",
    "sticker": "1",
    "offline_headers": {
      "sub_header": "Submit message",
      "action": "",
      "header": "We are online"
    },
    "color": "#238de9",
    "custom_sticker": {
      "offline": {
        "file_path": "",
        "file_name": "zylker-img20.png"
      },
      "online": {
        "file_path": "",
        "file_name": "zylker-img21.png"
      },
      "is_enabled": "false"
    },
    "online_headers": {
      "sub_header": "Submit message",
      "action": "",
      "header": "We are offline"
    }
  }
}