Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-03 00:09:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-03 00:09:22 +0300
commit65be6f9dd4d92590294f18c6212a075585467f6d (patch)
tree4d59ef2507b490450379b0954be041c7beca826d /doc/api/users.md
parentfee10148072e2e96d14034f099985a441a844c6e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/users.md')
-rw-r--r--doc/api/users.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/api/users.md b/doc/api/users.md
index b8917f3e215..a613add10bf 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -677,6 +677,28 @@ Example response:
}
```
+## User preference modification
+
+Update the current user's preferences.
+
+```plaintext
+PUT /user/preferences
+```
+
+```json
+{
+ "id": 1,
+ "user_id": 1
+ "view_diffs_file_by_file": true
+}
+```
+
+Parameters:
+
+| Attribute | Required | Description |
+| :--------------------------- | :------- | :---------------------------------------------------------- |
+| `view_diffs_file_by_file` | Yes | Flag indicating the user sees only one file diff per page. |
+
## Set user status
Set the status of the current user.