Skip to content

Commit

Permalink
usergroups.create
Browse files Browse the repository at this point in the history
  • Loading branch information
candiduslynx committed Apr 26, 2024
1 parent eb325a5 commit 55bdd38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usergroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ func (api *Client) CreateUserGroupContext(ctx context.Context, userGroup UserGro
"name": {userGroup.Name},
}

if userGroup.TeamID != "" {
values["team_id"] = []string{userGroup.TeamID}
}

if userGroup.Handle != "" {
values["handle"] = []string{userGroup.Handle}
}
Expand Down

0 comments on commit 55bdd38

Please sign in to comment.