diff --git a/docs/api/api.rst b/docs/api/api.rst --- a/docs/api/api.rst +++ b/docs/api/api.rst @@ -152,6 +152,32 @@ OUTPUT:: error : null +lock +---- + +Set locking state on given repository by given user. +This command can be executed only using api_key belonging to user with admin +rights. + +INPUT:: + + id : + api_key : "" + method : "lock" + args : { + "repoid" : "" + "userid" : "", + "locked" : "" + + } + +OUTPUT:: + + id : + result : "User `` set lock state for repo `` to `true|false`" + error : null + + get_user --------