code: public Label createLabel(Object projectIdOrPath, String name, String color, String description, Integer priority) throws GitLabApiException {
  
          GitLabApiForm formData = new GitLabApiForm()
                  .withParam("name", name, true)
                  .withParam("color", color, true)
                  .withParam("description", description)
                  .withParam("priority", priority);
          Response response = post(Response.Status.CREATED, formData, "projects", getProjectIdOrPath(projectIdOrPath), "labels");
          return (response.readEntity(Label.class));
      }
docs: Create a label
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param name the name for the label
  @param color the color for the label
  @param description the description for the label
  @param priority the priority for the label
  @return the created Label instance
  @throws GitLabApiException if any exception occurs