POST v1/Dashboards/InsertGadget
Request Information
URI Parameters
None.
Body Parameters
Gadget| Name | 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. |
Request 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}
Response Information
Resource Description
Gadget| Name | 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}