diff --git a/docs/api/api.rst b/docs/api/api.rst --- a/docs/api/api.rst +++ b/docs/api/api.rst @@ -711,7 +711,7 @@ OUTPUT:: "created_on" : "", "description" : "", "landing_rev": "", - "owner": "", + "owner": "", "fork_of": "", "enable_downloads": "", "enable_locking": "", @@ -721,6 +721,41 @@ OUTPUT:: error: null +fork_repo +--------- + +Creates a fork of given repo. This command can be executed only using api_key +belonging to user with admin rights. In case of using celery this will +immidiatelly return success message, while fork is going to be created +asynchronous + + +INPUT:: + + id : + api_key : "" + method : "fork_repo" + args: { + "repoid" : "", + "fork_name": "", + "owner": "", + "description": "", + "copy_permissions": "", + "private": "", + "landing_rev": "" + + } + +OUTPUT:: + + id : + result: { + "msg": "Created fork of `` as ``", + "success": true + } + error: null + + delete_repo -----------