[comment]: # ({03804433-534d39c6})
# 5 Favorite maps

[comment]: # ({/03804433-534d39c6})

[comment]: # ({59be3abe-84098726})
### 説明

これらのパラメーターと、各ダッシュボードウィジェットフィールドオブジェクトの有効なプロパティ値を使用することで、`dashboard.create`メソッドおよび`dashboard.update`メソッドで[*お気に入りのマップ*](/manual/web_interface/frontend_sections/dashboards/widgets/favorite_maps)ウィジェットを設定できます。

[comment]: # ({/59be3abe-84098726})

[comment]: # ({49829f3f-7c9dc890})
### パラメーター

*お気に入りのマップ*ウィジェットでは、以下のパラメーターがサポートされています。

|パラメーター|[type](/manual/api/reference/dashboard/object#dashboard-widget-field)|name|value|
|-----|-|-----|-------------------|
|*リフレッシュ間隔*|0|rf_rate|0 - 更新なし<br>10 - 10秒<br>30 - 30秒<br>60 - 1分<br>120 - 2分<br>600 - 10分<br>900 - *(デフォルト)* 15分|

[comment]: # ({/49829f3f-7c9dc890})

[comment]: # ({09fc685e-8d90edd1})
### 例

次の例は、*お気に入りのマップ*ウィジェットのダッシュボードウィジェットフィールドオブジェクトの設定を説明することだけを目的としています。
ダッシュボードの設定の詳細については、[`dashboard.create`](/manual/api/reference/dashboard/create)を参照してください。

[comment]: # ({/09fc685e-8d90edd1})

[comment]: # ({bc2bea94-cca60ae7})
#### *お気に入りのマップ*ウィジェットの設定

*お気に入りのマップ*ウィジェットを更新間隔を10分で設定します。

[リクエスト](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "dashboard.create",
    "params": {
        "name": "My dashboard",
        "display_period": 30,
        "auto_start": 1,
        "pages": [
            {
                "widgets": [
                    {
                        "type": "favmaps",
                        "name": "Favorite maps",
                        "x": 0,
                        "y": 0,
                        "width": 12,
                        "height": 3,
                        "view_mode": 0,
                        "fields": [
                            {
                                "type": 0,
                                "name": "rf_rate",
                                "value": 600
                            }
                        ]
                    }
                ]
            }
        ],
        "userGroups": [
            {
                "usrgrpid": 7,
                "permission": 2
            }
        ],
        "users": [
            {
                "userid": 1,
                "permission": 3
            }
        ]
    },
    "id": 1
}
```

レスポンス:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "dashboardids": [
            "3"
        ]
    },
    "id": 1
}
```

[comment]: # ({/bc2bea94-cca60ae7})

[comment]: # ({e9d30322-3b9216d7})
### 参照

-   [Dashboard widget field](/manual/api/reference/dashboard/object#dashboard-widget-field)
-   [`dashboard.create`](/manual/api/reference/dashboard/create)
-   [`dashboard.update`](/manual/api/reference/dashboard/update)

[comment]: # ({/e9d30322-3b9216d7})
