Saves a user-written description for a dynamic report, with its auto-generation and stale-warning settings
Use this endpoint when a user edits a report’s description or its description settings. With AutoGenerate true (the default),
PUT /api/v202607/dynamicReporting/{reportId} replaces the description with a Watts-written one the next time the report is saved with
KQL the description wasn’t written for. With AutoGenerate false, report saves keep this description.
The request carries the KqlHash of the query the description was written for, as returned by GET /api/v202607/dynamicReporting/{reportId}
or POST /api/v202611/dynamicReporting/{reportId}/description/generate. When the report’s KQL later hashes differently, the report is
returned with DescriptionStale true so the user can review the description; IgnoreStale records that the user doesn’t want that warning.
For settings-only changes, keep Description unchanged and omit KqlHash or send null to preserve the description’s original hash and staleness.
Edited or regenerated descriptions must include the hash of the query they describe, even if regeneration produces the same text.
Only the report’s creator may change its description. Returns 404 if the report does not exist or the caller cannot see it;
returns 403 if the caller can see it but did not create it; returns 400 if the description is blank or too long, a supplied KqlHash is not
64 lowercase hexadecimal characters, or the description changes without a KqlHash.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type, including the request body. |
Path Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| reportId | Unique numeric identifier of the dynamic report whose description is being saved. | integer (int32) | Required |
Request Body
DynamicReportDescriptionRequestV202611
| Property | Description | Type |
|---|---|---|
| autoGenerate | When true (the default), Watts writes a new description each time the report is saved with KQL this description wasn’t written for. When false, the description is kept by later report saves and is reported as stale once the KQL changes. Required (defined) | boolean |
| description | The new user-facing description. Required; must contain non-whitespace text; at most 4,000 characters. Max length of 4000 | string |
| ignoreStale | When true, clients should not warn that the description is stale. Defaults to false. Required (defined) | boolean |
| kqlHash | KqlHash of the report version the description was written for, as returned by GET /api/v202607/dynamicReporting/{reportId} or POST /api/v202611/dynamicReporting/{reportId}/description/generate. When supplied, must be 64 lowercase hexadecimal characters. If the report’s KQL has changed since that hash was read, the saved description is reported as stale. Omit or send null for settings-only changes to preserve the description’s original hash; the description text must then be unchanged. Required (defined) | string |
Example Request Body
{ "autoGenerate": false, "description": "string", "ignoreStale": false, "kqlHash": "string"
}
Responses
200
OK
The request succeeded and the response body contains the requested data.
Response Body Parameters
DynamicReportResponseV202607
| Property | Description | Type | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| columns | Required (defined) | string[] | ||||||||||||||||||
| createdBy | UserChildWithActive | |||||||||||||||||||
|
UserChildWithActive properties
|
||||||||||||||||||||
| createdDate | Date and time when the report was created. Required (defined) | string (date-time) | ||||||||||||||||||
| description | User-facing description stored on the current report version. Null when no description was supplied. Required (defined) | string | ||||||||||||||||||
| descriptionAutoGenerate | True (the default) when Watts writes a new description each time the report is saved with KQL the description wasn’t written for. False when the report’s creator turned this off through PUT /api/v202611/dynamicReporting/{reportId}/description; the saved description is then kept by later report saves and becomes stale when the KQL changes. Required (defined) | boolean | ||||||||||||||||||
| descriptionIgnoreStale | True when the report’s creator chose not to be warned about a stale description. DescriptionStale is still reported; clients should not show a warning for it. Required (defined) | boolean | ||||||||||||||||||
| descriptionStale | True when the description was written for KQL that is no longer the report’s saved KQL, so it may no longer match the report. Normally only when DescriptionAutoGenerate is false: with it on, every save that changes the KQL replaces the description. Required (defined) | boolean | ||||||||||||||||||
| dynamicReportId | Unique numeric identifier of the saved dynamic report. Required (defined) | integer (int32) | ||||||||||||||||||
| dynamicReportInfo | User-facing saved report title. Required (defined) | string | ||||||||||||||||||
| gridState | Serialized grid, chart, and panel state stored on the current report version. Null when no UI state has been saved. Required (defined) | string | ||||||||||||||||||
| kql | KQL persisted on the current report version and used to reproduce its data. Required (defined) | string | ||||||||||||||||||
| kqlHash | Hash of the KQL on the current report version. Send it with PUT /api/v202611/dynamicReporting/{reportId}/description when editing the description to record which version of the query it was written for. For settings-only changes, omit the request’s KqlHash or send null to preserve the description’s original hash and staleness. Required (defined) | string | ||||||||||||||||||
| lastViewedDate | Date and time when the current report version was last successfully executed. Null when the report has never been viewed. Required (defined) | string (date-time) | ||||||||||||||||||
| modifiedBy | UserChild | |||||||||||||||||||
|
UserChild properties
|
||||||||||||||||||||
| modifiedDate | Date and time when the current report version was most recently modified. Required (defined) | string (date-time) | ||||||||||||||||||
| ownerId | Unique numeric identifier of the EnergyCAP owner that contains this report. Required (defined) | integer (int32) | ||||||||||||||||||
| shared | True when the report has been shared with everyone, at least one user, or at least one user group. False when only the creator can see it. Required (defined) | boolean | ||||||||||||||||||
| sharedWithMe | True when the current caller can see this report only because it was shared with them (directly, through a user group, or with everyone). False for reports the caller created. Required (defined) | boolean | ||||||||||||||||||
| visible | True when the report appears in the current caller’s report list. False when the caller has hidden this shared report from their list. Always true for reports the caller created. Required (defined) | boolean | ||||||||||||||||||
| wattsChatId | Unique numeric identifier of the reporting chat that owns the linked assistant message. Null for legacy or unlinked reports. Required (defined) | integer (int32) | ||||||||||||||||||
| wattsChatMessageId | Unique numeric identifier of the assistant message associated with the saved KQL. Null for legacy or unlinked reports. Always null when the caller is not the report’s creator, because the chat belongs to the creator. Required (defined) | integer (int32) | ||||||||||||||||||
Example Response
{ "columns": [
"string"
], "createdBy": { "active": false, "fullName": "string", "hiddenUser": false, "userCode": "string", "userId": 1
}, "createdDate": "2026-11-25", "description": "string", "descriptionAutoGenerate": false, "descriptionIgnoreStale": false, "descriptionStale": false, "dynamicReportId": 1, "dynamicReportInfo": "string", "gridState": "string", "kql": "string", "kqlHash": "string", "lastViewedDate": "2026-11-25", "modifiedBy": { "fullName": "string", "userCode": "string", "userId": 1
}, "modifiedDate": "2026-11-25", "ownerId": 1, "shared": false, "sharedWithMe": false, "visible": false, "wattsChatId": 1, "wattsChatMessageId": 1
}
400
Bad Request
The request was malformed or contains invalid parameters. Check the request body and query parameters.
403
Forbidden
You do not have permission to access this resource. Check your user role and permissions.
404
Not Found
The requested resource was not found. Verify the ID or path is correct.