Separator

    This component renders a separating line within a box.

    A vertical line will be rendered in a horizontal box and a horizontal line will be rendered in a vertical box.

    API Type

    Server API

    Request URL

    https://apis.worksmobile.com/r/{API ID}/message/v1/bot/{botNo}/message/push

    HTTP Method

    POST(Content-Type: application/json; charset=UTF-8)

    Request

    Parameter Type Required Description
    type string Y Set this parameter to separator.
    margin string N Minimum space between this component and the previous component in the parent element. For more information, see margin property of the component in “How to Place Components and Adjust Child Components.”
    color string N Color of the separator. Use a hexadecimal color code.

    Request Example

    
    {
      "type": "bubble",
      "body": {
        "type": "box",
        "layout": "vertical",
        "spacing": "md",
        "contents": [
          {
            "type": "box",
            "layout": "horizontal",
            "spacing": "md",
            "contents": [
              {
                "type": "text",
                "text": "message"
              },
              {
                "type": "text",
                "text": "calendar"
              }
            ]
          },
          {
            "type": "separator"
          },
          {
            "type": "box",
            "layout": "horizontal",
            "spacing": "md",
            "contents": [
              {
                "type": "text",
                "text": "bot"
              },
              {
                "type": "text",
                "text": "home"
              }
            ]
          }
        ]
      }
    }