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
path: root/doc
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-12-05 14:34:06 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2018-12-05 14:34:06 +0300
commit1c9b10016a30dc8b8a7aa2a64eb0175973661087 (patch)
tree4bcfadcb045855e3d143100d23679eeb18556f15 /doc
parent5ea6b08e7c223fe9ca9d12f62e83a847d065bb42 (diff)
parent9f4a3111e4111bc22a4f90e1e7059de4ce5f7bc4 (diff)
Merge branch '54826-use-read_repository-scope-on-read-only-files-endpoints' into 'master'
Resolve "Use read_repository scope on read-only files endpoints" Closes #54826 See merge request gitlab-org/gitlab-ce!23534
Diffstat (limited to 'doc')
-rw-r--r--doc/api/repository_files.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/repository_files.md b/doc/api/repository_files.md
index c3624f1a535..5f587f480b6 100644
--- a/doc/api/repository_files.md
+++ b/doc/api/repository_files.md
@@ -4,6 +4,16 @@
**Create, read, update and delete repository files using this API**
+The different scopes available using [personal access tokens](../user/profile/personal_access_tokens.md) are depicted
+in the following table.
+
+| Scope | Description |
+| ----- | ----------- |
+| `read_repository` | Allows read-access to the repository files. |
+| `api` | Allows read-write access to the repository files. |
+
+> `read_repository` scope was [introduced](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23534) in GitLab 11.6.
+
## Get file from repository
Allows you to receive information about file in repository like name, size,