Skip to content

Commit ed7ed76

Browse files
authored
Add body to setDashboardItemProperty (MrRefactoring#240)
Co-authored-by: Jocelyn Bouchard <[email protected]>
1 parent c9da957 commit ed7ed76

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/version2/dashboards.ts

+4
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,10 @@ export class Dashboards {
493493
const config: RequestConfig = {
494494
url: `/rest/api/2/dashboard/${parameters.dashboardId}/items/${parameters.itemId}/properties/${parameters.propertyKey}`,
495495
method: 'PUT',
496+
headers: {
497+
'Content-Type': 'application/json',
498+
},
499+
data: parameters.body,
496500
};
497501

498502
return this.client.sendRequest(config, callback);

src/version3/dashboards.ts

+4
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,10 @@ export class Dashboards {
492492
const config: RequestConfig = {
493493
url: `/rest/api/3/dashboard/${parameters.dashboardId}/items/${parameters.itemId}/properties/${parameters.propertyKey}`,
494494
method: 'PUT',
495+
headers: {
496+
'Content-Type': 'application/json',
497+
},
498+
data: parameters.body,
495499
};
496500

497501
return this.client.sendRequest(config, callback);

0 commit comments

Comments
 (0)