package io.jenkins.blueocean.rest.sandbox;

import hudson.ExtensionPoint;
import org.kohsuke.stapler.WebMethod;

import java.util.Iterator;

/**
 * @author Kohsuke Kawaguchi
 */
public abstract class OrganizationContainer extends Container<Organization> implements ExtensionPoint {
    @WebMethod(name="",method="POST")
    public abstract Organization create(@JsonParam String name);
}

@@ -74,16 +74,137 @@
 %0Aimport 
+io.jenkins.blueocean.api.profile.CreateOrganizationRequest;%0Aimport io.jenkins.blueocean.commons.stapler.JsonBody;%0Aimport 
 org.kohs
@@ -228,36 +228,8 @@
 thod
-;%0A%0Aimport java.util.Iterator
 ;%0A%0A/
@@ -455,25 +455,42 @@
 Json
-Param String name
+Body CreateOrganizationRequest req
 );%0A%7D

The request payload should be CreateOrganizationRequest