PUT v1/Dashboards/SaveFilterToGadget?gadgetId={gadgetId}&dashboardId={dashboardId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
gadgetId | integer |
Required |
|
dashboardId | integer |
Default value is 0 |
Body Parameters
Collection of FilterFieldName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
selection | Collection of string |
None. |
|
selectedItems | Collection of ItemBaseModel |
None. |
|
equalType | enmEqualType |
None. |
Request Formats
application/json, text/json, application/vnd.team.do+json
Sample:
[ { "id": 1, "selection": [ "sample string 1", "sample string 2" ], "selectedItems": [ { "id": 1, "name": "sample string 2" }, { "id": 1, "name": "sample string 2" } ], "equalType": 0 }, { "id": 1, "selection": [ "sample string 1", "sample string 2" ], "selectedItems": [ { "id": 1, "name": "sample string 2" }, { "id": 1, "name": "sample string 2" } ], "equalType": 0 } ]
text/html
Sample:
[{"id":1,"selection":["sample string 1","sample string 2"],"selectedItems":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"equalType":0},{"id":1,"selection":["sample string 1","sample string 2"],"selectedItems":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"equalType":0}]
Response Information
Resource Description
GadgetName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
name | string |
None. |
|
type | enmGadgetType |
None. |
|
filterId | integer |
None. |
|
projectIds | Collection of integer |
None. |
|
chart | ChartEnt |
None. |
|
isPublic | boolean |
None. |
|
statusArchive | enmStatusArchive |
None. |
Response Formats
application/json, text/json, application/vnd.team.do+json
Sample:
{ "id": 1, "name": "sample string 2", "type": 0, "filterId": 3, "projectIds": [ 1, 2 ], "chart": { "id": 1, "type": 0, "axisLabelsTitle": "sample string 2", "axisLabelsFieldId": 3, "axisValuesTitle": "sample string 4", "axisValuesTotalType": 0, "axisValuesFieldId": 5 }, "isPublic": true, "statusArchive": 0 }
text/html
Sample:
{"id":1,"name":"sample string 2","type":0,"filterId":3,"projectIds":[1,2],"chart":{"id":1,"type":0,"axisLabelsTitle":"sample string 2","axisLabelsFieldId":3,"axisValuesTitle":"sample string 4","axisValuesTotalType":0,"axisValuesFieldId":5},"isPublic":true,"statusArchive":0}