@POST @ApiIgnore // until documented
  @Produces("text/plain")
  public Response createPrivilege(String body, @Context HttpHeaders headers, @Context UriInfo ui) {

    return handleRequest(headers, body, ui, Request.Type.POST, createPrivilegeResource(null));
  }
Handles: POST /privileges
Create a privilege.

@param body       request body
@param headers    http headers
@param ui         uri info

@return information regarding the created privilege
ambari-server/src/main/java/org/apache/ambari/server/api/services/PrivilegeService.java