code: @POST
      @Path("{group}/{id}")
      @Consumes(MediaType.APPLICATION_JSON)
      public Response createRole(@PathParam("group") String group, @PathParam("id") String id, EmoRole role,
                                        final @Authenticated Subject subject) {
          checkArgument(role.getId().equals(new EmoRoleKey(group, id)),
                  "Body contains conflicting role identifier");
          return createRoleFromUpdateRequest(group, id,
                  new CreateEmoRoleRequest()
                          .setName(role.getName())
                          .setDescription(role.getDescription())
                          .setPermissions(role.getPermissions()),
                  subject);
      }
docs: RESTful endpoint for creating a role.