---
# System prepended metadata

title: Widget

---

# Widget

### 一、Create API
endpoint: https://apistaging.cresclab.com/line/v1/widget/?bot=5
```json
{
    "bot":1,
    "name":"name",
    "enable":True,
    "link":"www.google.com",
    "link_type": 1,
    "url_filter_type":3,
    "url_filter_strings":["/"],
    "trigger_setting": {
        "type":"sec",
        "value":20,
    },
    "trigger_frequency_type":1,
    "desktop_setting": {
        "enable": True,
        "image_url": "https://cdn.maac.app/project/InSeed/INSeed_popup_web.jpg",
        "image_size": {
            "width": 1090,
            "height": 460,
        },
        "position": {
            "type": "left",
            "horizontal_pixel": 10,
            "bottom_pixel": 10,
        },
    },
    "mobile_setting": {
        "enable": True,
        "imageUrl": "https://cdn.maac.app/project/InSeed/INSeed_popup_mobile2.jpg",
        "image_size": {
            "width": 300,
            "height": 1000,
        },
        "position": {
            "bottom_pixel": 10,
        },
    },
}

```
### 二、Update API
endpoint: 
https://apistaging.cresclab.com/line/v1/widget/{id}/?bot=5
```json


```
### 三、List API
endpoint: https://apistaging.cresclab.com/line/v1/widget/?bot=5

### 四、Report API
endpoint: 
https://apistaging.cresclab.com/line/v1/widget/436/report/?start_date=2020-08-12&end_date=2020-10-19
