
com.box.boxjavalibv2.requests.CreateGroupRequest Maven / Gradle / Ivy
package com.box.boxjavalibv2.requests;
import org.apache.http.HttpStatus;
import com.box.boxjavalibv2.interfaces.IBoxJSONParser;
import com.box.boxjavalibv2.requests.requestobjects.BoxDefaultRequestObject;
import com.box.restclientv2.RestMethod;
import com.box.restclientv2.exceptions.BoxRestException;
import com.box.restclientv2.interfaces.IBoxConfig;
import com.box.restclientv2.requests.DefaultBoxRequest;
public class CreateGroupRequest extends DefaultBoxRequest {
private static final String URI = "/groups";
public CreateGroupRequest(final IBoxConfig config, final IBoxJSONParser parser, final BoxDefaultRequestObject requestObject) throws BoxRestException {
super(config, parser, getUri(), RestMethod.POST, requestObject);
setExpectedResponseCode(HttpStatus.SC_CREATED);
}
/**
* Get uri.
*
* @return uri
*/
public static String getUri() {
return URI;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy