diff --git a/doc/apidoc.js b/doc/apidoc.js index 8defde966a..bafd82629d 100644 --- a/doc/apidoc.js +++ b/doc/apidoc.js @@ -1662,7 +1662,7 @@ github.issues.removeAllLabels({ ... }); * @apiParam {String} user * @apiParam {String} repo * @apiParam {Number} number - * @apiParam {Array} assignees Logins for the users that should be removed from the issue. + * @apiParam {Json} body JSON object that contains assignees array of logins for the users that should be removed from the issue. * @apiExample {js} ex: github.issues.removeAssigneesFromIssue({ ... }); */ diff --git a/lib/routes.json b/lib/routes.json index cc7ed7210e..740d054ec0 100644 --- a/lib/routes.json +++ b/lib/routes.json @@ -2036,12 +2036,13 @@ "$user": null, "$repo": null, "$number": null, - "assignees": { - "type": "Array", + "body": { + "type": "Json", + "sendValueAsBody": true, "required": true, "validation": "", "invalidmsg": "", - "description": "Logins for the users that should be removed from the issue." + "description": "JSON object that contains assignees array of logins for the users that should be removed from the issue." } }, "description": "Remove assignees from an issue." diff --git a/test/issuesTest.js b/test/issuesTest.js index bbecbc5bfc..72f47164e3 100644 --- a/test/issuesTest.js +++ b/test/issuesTest.js @@ -587,7 +587,7 @@ describe("[issues]", function() { user: "String", repo: "String", number: "Number", - assignees: "Array" + body: "Json" }, function(err, res) { Assert.equal(err, null);