Project

General

Profile

Actions

Support #5423

open

API-Documentation for Method "create_repo_group" faulty

Added by Malte Onnen over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
22.01.2018
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

Adding the group_description does not work as described in the Docs.

Api-Call from PowerShell:
Invoke-WebRequest https://rhodecode-url/_admin/api -Method Post -Body {"args":{"description":"testDescriptionWithoutBlanks","owner":2,"group_name":"testgrp"},"method":"create_repo_group","auth_token":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","id":1}
I also tried:
Invoke-WebRequest https://rhodecode-url/_admin/api -Method Post -Body {"args":{"group_description":"testDescriptionWithoutBlanks","owner":2,"group_name":"testgrp"},"method":"create_repo_group","auth_token":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","id":1}

Expected Result:
}
"id": 1,
"result": {
"repo_group": {
"parent_group": null,
"group_name": "testgrp",
"group_description": "testDescriptionWithoutBlanks",
"group_id": 12,
"owner": "SUPERADMIN-USER",
"repositories": []
},
"msg": "Created new repo group
testgrp"
},
"error": null
}

Actual Result:
{
"id": 1,
"result": {
"repo_group": {
"parent_group": null,
"group_name": "testgrp",
"group_description": "testgrp",
"group_id": 12,
"owner": "SUPERADMIN-USER",
"repositories": []
},
"msg": "Created new repo group
testgrp"
},
"error": null
}

Actions

Also available in: Atom PDF