diff --git a/docs/api/api.rst b/docs/api/api.rst --- a/docs/api/api.rst +++ b/docs/api/api.rst @@ -127,6 +127,31 @@ OUTPUT:: error : null +rescan_repos +------------ + +Dispatch rescan repositories action. If remove_obsolete is set +RhodeCode will delete repos that are in database but not in the filesystem. +This command can be executed only using api_key belonging to user with admin +rights. + +INPUT:: + + id : + api_key : "" + method : "rescan_repos" + args : { + "remove_obsolete" : "" + } + +OUTPUT:: + + id : + result : "{'added': [], + 'removed': []}" + error : null + + get_user --------