diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-03 00:09:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-03 00:09:22 +0300 |
commit | 65be6f9dd4d92590294f18c6212a075585467f6d (patch) | |
tree | 4d59ef2507b490450379b0954be041c7beca826d /doc/api/users.md | |
parent | fee10148072e2e96d14034f099985a441a844c6e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/users.md')
-rw-r--r-- | doc/api/users.md | 22 |
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. |