Interface TeamCreate

  • All Known Implementing Classes:
    ImmutableTeamCreate

    @Immutable
    public interface TeamCreate
    Request to create a team within a given organisation
    • Method Detail

      • name

        @Nullable
        String name()
        The name of the team.
      • description

        Optional<String> description()
        The description of the team.
      • privacy

        Optional<String> privacy()
        The level of privacy this team should have. For a non-nested team: secret - only visible to organization owners and members of this team. closed - visible to all members of this organization. Default: secret For a parent or child team: closed - visible to all members of this organization. Default for child team: closed Can be one of: secret, closed
      • notification_setting

        Optional<String> notification_setting()
        The notification setting the team has chosen. The options are: notifications_enabled - team members receive notifications when the team is @mentioned. notifications_disabled - no one receives notifications. Default: notifications_enabled Can be one of: notifications_enabled, notifications_disabled
      • maintainers

        Optional<List<String>> maintainers()
        List GitHub IDs for organization members who will become team maintainers.
      • repo_names

        Optional<List<String>> repo_names()
        The full name (e.g., "organization-name/repository-name") of repositories to add the team to.
      • parent_team_id

        Optional<String> parent_team_id()
        The ID of a team to set as the parent team.