=== modified file 'src/docbkx/en/dhis2_user_man_web_api.xml'
--- src/docbkx/en/dhis2_user_man_web_api.xml 2014-04-03 07:19:12 +0000
+++ src/docbkx/en/dhis2_user_man_web_api.xml 2014-04-03 12:44:05 +0000
@@ -3948,9 +3948,12 @@
You can manipulate user settings by interacting with the userSettings resource. A user setting is a simple key-value pair, where both the
key and the value are plain text strings. The user setting will be linked to the user who is
- authenticated for the Web API request. To save or update a user setting you can make a
- POST request to the following URL:
+ authenticated for the Web API request. To save or update a setting for the currently
+ authenticated user you can make a POST request to the
+ following URL:
/api/userSettings/my-key?value=my-val
+ You can specify the user for which to save the setting explicitly with this syntax:
+ /api/userSettings/my-key?user=user-id&value=my-val
Alternatively, you can submit the setting value as the request body, where content type is
set to "text/plain". As an example, you can use curl like this:
curl "apps.dhis2.org/demo/api/userSettings/my-key" -d "My long value" -H "Content-Type: text/plain" -u admin:district -v