I have added the "Text" gadget to my dashboard and I want to modify its content using the REST API. I haven't found anything in the official documentation. If I do it manually with the browser and enable the DevTools I see that it calls the PUT method of https://myjira/rest/dashboards/1.0/26433/gadget/34273/prefs with the payload:
{ "up_isConfigured": true, "up_title": "a", "up_html": "bb" }
If I navigate to https://myjira/rest/dashboards/1.0/26433/gadget/34273/prefs, it responds:
(Note: changed < with _ due to HTML restrictions in this form)
_?xml version="1.0" encoding="UTF-8" standalone="yes"?>
_userPrefsRepresentation> _action>https://myjira/rest/dashboards/1.0/26433/gadget/34273/prefs_/action>
_fields>
_name>isConfigured_/name>
_value>true_/value>
_type>hidden_/type>
displayName>isConfigured_/displayName>
_required>false_/required>
_/fields>
_fields>
_name>refresh_/name>
_value>false_/value>
_type>hidden_/type>
_displayName>refresh_/displayName>
_required>false_/required>
_/fields>
_fields>
_name>html_/name>
_value>bb_/value>
_type>hidden_/type>
_displayName>html_/displayName>
_required>false_/required>
_/fields>
_fields>
_name>title_/name>
_value>a_/value>
_type>hidden_/type>
_displayName>title_/displayName>
_required>false_/required>
_/fields>
_/userPrefsRepresentation>