@@ -302,48 +302,49 @@ OUTPUT::
error: null
get_users
---------
Lists all existing users. This command can be executed only using api_key
belonging to user with admin rights.
INPUT::
id : <id_for_response>
api_key : "<api_key>"
method : "get_users"
args : { }
OUTPUT::
id : <id_given_in_input>
result: [
{
"user_id" : "<user_id>",
"api_key" : "<api_key>",
"username" : "<username>",
"firstname": "<firstname>",
"lastname" : "<lastname>",
"email" : "<email>",
"emails": "<list_of_all_additional_emails>",
"ip_addresses": "<list_of_ip_addresses_for_user>",
"active" : "<bool>",
"admin" : "<bool>",
"ldap_dn" : "<ldap_dn>",
"last_login": "<last_login>",
},
…
]
create_user
-----------
Creates new user. This command can
be executed only using api_key belonging to user with admin rights.
@@ -393,48 +394,49 @@ be executed only using api_key belonging
method : "update_user"
args : {
"userid" : "<user_id or username>",
"username" : "<username> = Optional(None)",
"email" : "<useremail> = Optional(None)",
"password" : "<password> = Optional(None)",
"firstname" : "<firstname> = Optional(None)",
"lastname" : "<lastname> = Optional(None)",
"active" : "<bool> = Optional(None)",
"admin" : "<bool> = Optional(None)",
"ldap_dn" : "<ldap_dn> = Optional(None)"
}
result: {
"msg" : "updated user ID:<userid> <username>",
"user": {
delete_user
deletes givenuser if such user exists. This command can
@@ -461,48 +463,49 @@ get_users_group
Gets an existing user group. This command can be executed only using api_key
method : "get_users_group"
"usersgroupid" : "<user group id or name>"
result : None if group not exist
"users_group_id" : "<id>",
"group_name" : "<groupname>",
"active": "<bool>",
"members" : [
error : null
get_users_groups
----------------
Lists all existing user groups. This command can be executed only using
api_key belonging to user with admin rights.
@@ -643,73 +646,75 @@ OUTPUT::
"repo_name" : "<reponame>"
"repo_type" : "<repo_type>",
"clone_uri" : "<clone_uri>",
"enable_downloads": "<bool>",
"enable_locking": "<bool>",
"enable_statistics": "<bool>",
"private": "<bool>",
"created_on" : "<date_time_created>",
"description" : "<description>",
"landing_rev": "<landing_rev>",
"last_changeset": {
"author": "<full_author>",
"date": "<date_time_of_commit>",
"message": "<commit_message>",
"raw_id": "<raw_id>",
"revision": "<numeric_revision>",
"short_id": "<short_id>"
"owner": "<repo_owner>",
"fork_of": "<name_of_fork_parent>",
"type": "user",
"permission" : "repository.(read|write|admin)"
"type": "users_group",
"id" : "<usersgroupid>",
"name" : "<usersgroupname>",
"followers": [
get_repos
Lists all existing repositories. This command can be executed only using
api_key belonging to user with admin rights or regular user that have
admin, write or read access to repository.
Status change: