summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2018-09-07 04:31:29 +0100
committertechknowlogick <techknowlogick@users.noreply.github.com>2018-09-06 23:31:29 -0400
commitd293a2b9d6722dffde7998c953c3087e47a38a83 (patch)
tree9fd63e39b27e51c8ca6360fd0cf4792e075c9b4a /docs
parente6a03813d463bc0c624a3c40fb615cacc006e265 (diff)
downloadgitea-d293a2b9d6722dffde7998c953c3087e47a38a83.tar.gz
gitea-d293a2b9d6722dffde7998c953c3087e47a38a83.zip
Add sudo functionality to the API (#4809)
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/advanced/api-usage.en-us.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/content/doc/advanced/api-usage.en-us.md b/docs/content/doc/advanced/api-usage.en-us.md
index f04a99f14b..369bae6cac 100644
--- a/docs/content/doc/advanced/api-usage.en-us.md
+++ b/docs/content/doc/advanced/api-usage.en-us.md
@@ -73,3 +73,7 @@ using BasicAuth, as follows:
$ curl --request GET --url https://yourusername:yourpassword@gitea.your.host/api/v1/users/yourusername/tokens
[{"name":"test","sha1":"..."},{"name":"dev","sha1":"..."}]
```
+
+## Sudo
+
+The API allows admin users to sudo API requests as another user. Simply add either a `sudo=` parameter or `Sudo:` request header with the username of the user to sudo.