sections_edit

Sections edit allows editing/updating an existing section in the widget according to the action performed. It is one of the response types of the action handler. This response type contains a list of existing sections that have to be edited and allows a success/failure banner.

ParameterDescriptionDatatypeMax Limit
typeType of response - sections_editString-
sectionsList of sectionsList5
success_bannerText to be displayed on the banner if the action was a successString-
failure_bannerText to be displayed on the banner if the action was a failureString-
refresh_section whether to refresh the parent section by invoking the action handler with action type navigate_back while navigating back or to show the initial data itself.Boolean-
pendingThe pending action is valid for 3 minutes. ie, the callback API for a particular pending action should be invoked within 3 minutes. Learn more.Boolean-

Sample JSON

{
  "type":"sections_edit",
  "sections":
  [
    {
      "reference_id":"HO340WA52EIPHTFUR_cancelled",
      "name":"purchaseInfo",
      "title":"Item Details",
      "layout":"info",
      "data":
      [
        {
          "label":"Item Name",
          "value":"Tiago Engineered Wood Four Door Wardrobe in Wenge Colour by HomeTown"
        },
          {
            "label":"Net Price","value":"₹ 37,900"
            
          },
          {
            "label":"Status","value":"Cancelled"
          }
      ]
    }
  ],
    "success_banner":"Item HO340WA52EIPHTFUR cancelled successfully",
    "refresh_section":true 
}