@@ -636,7 +636,7 @@ public Optional<Group> getOptionalGroup(Object groupIdOrPath) {
636
636
* @throws GitLabApiException if any exception occurs
637
637
*/
638
638
public Group createGroup (GroupParams params ) throws GitLabApiException {
639
- Response response = post (Response .Status .CREATED , params .getForm (true ), "groups" );
639
+ Response response = post (Response .Status .CREATED , new GitLabApiForm ( params .getForm (true ) ), "groups" );
640
640
return (response .readEntity (Group .class ));
641
641
}
642
642
@@ -651,8 +651,11 @@ public Group createGroup(GroupParams params) throws GitLabApiException {
651
651
* @throws GitLabApiException at any exception
652
652
*/
653
653
public Group updateGroup (Object groupIdOrPath , GroupParams params ) throws GitLabApiException {
654
- Response response =
655
- putWithFormData (Response .Status .OK , params .getForm (false ), "groups" , getGroupIdOrPath (groupIdOrPath ));
654
+ Response response = putWithFormData (
655
+ Response .Status .OK ,
656
+ new GitLabApiForm (params .getForm (false )),
657
+ "groups" ,
658
+ getGroupIdOrPath (groupIdOrPath ));
656
659
return (response .readEntity (Group .class ));
657
660
}
658
661
@@ -2455,7 +2458,11 @@ public void revokeGroupAccessToken(Object groupIdOrPath, Long tokenId) throws Gi
2455
2458
*/
2456
2459
public GroupHook addWebhook (Object groupIdOrPath , GroupHookParams groupHookParams ) throws GitLabApiException {
2457
2460
Response response = post (
2458
- Response .Status .CREATED , groupHookParams .getForm (), "groups" , getGroupIdOrPath (groupIdOrPath ), "hooks" );
2461
+ Response .Status .CREATED ,
2462
+ new GitLabApiForm (groupHookParams .getForm ()),
2463
+ "groups" ,
2464
+ getGroupIdOrPath (groupIdOrPath ),
2465
+ "hooks" );
2459
2466
return (response .readEntity (GroupHook .class ));
2460
2467
}
2461
2468
0 commit comments