Web API: Usersettings

From QPR ProcessAnalyzer Wiki
Revision as of 23:34, 17 February 2022 by Ollvihe (talk | contribs)
Jump to navigation Jump to search

The usersettings operation saves user specific settings to server. The PUT version is used to store an individual setting and the POST version to store multiple settings.

HTTP request header Authorization with value Bearer <access token> needs to be in place to identify the session.

PUT /api/usersettings/{key}/{value}

Stores individual user setting to the server.

Url: PUT qprpa/api/usersettings/{key}/{value}

The key is the setting name and value is the setting value.

Returns HTTP code 204 (No content).

POST qprpa/api/usersettings/

Stores multiple user settings to the server at the same time. Possible existing settings in the server that are not mentioned in the request, are not removed.

Url: POST /api/usersettings/

The request body contains an object that has fields for all the settings to be stored.

Returns HTTP code 204 (No content).