aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2013-01-26 23:12:50 +0100
committerMarcin Kuzminski <marcin@python-works.com>2013-01-26 23:12:50 +0100
commit1bd7642518a4cc348eba71a7b2021b610ca3bbe3 (patch)
treef8b10e4f39a45566048e0918bd28e5fe1e5394ac /docs
parent89c5d0414e881b5cbd9a6f21763de3d917077101 (diff)
API invalidate_cache function ref #733
--HG-- branch : beta
Diffstat (limited to 'docs')
-rw-r--r--docs/api/api.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/api/api.rst b/docs/api/api.rst
index c0f4aee1..6a5eefee 100644
--- a/docs/api/api.rst
+++ b/docs/api/api.rst
@@ -152,6 +152,28 @@ OUTPUT::
error : null
+invalidate_cache
+----------------
+
+Invalidate cache for repository.
+This command can be executed only using api_key belonging to user with admin
+rights or regular user that have write or admin or write access to repository.
+
+INPUT::
+
+ id : <id_for_response>
+ api_key : "<api_key>"
+ method : "invalidate_cache"
+ args : {
+ "repoid" : "<reponame or repo_id>"
+ }
+
+OUTPUT::
+
+ id : <id_given_in_input>
+ result : "Cache for repository `<reponame>` was invalidated: invalidated cache keys: <list_of_cache_keys>"
+ error : null
+
lock
----