@POST @ApiIgnore // until documented
  @Path("{permissionId}")
  @Produces("text/plain")
  public Response createPermission(String body, @Context HttpHeaders headers, @Context UriInfo ui,
                             @PathParam("permissionId") String permissionId) {

    return handleRequest(headers, body, ui, Request.Type.POST, createPermissionResource(permissionId));
  }
Handles: POST /permissions/{permissionID}
Create a specific permission.

@param headers    http headers
@param ui         uri info
@param permissionId   permission id

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