12 lines
270 B
Go
12 lines
270 B
Go
package sub2api
|
|
|
|
import "context"
|
|
|
|
func (c *Client) CreateGroup(ctx context.Context, req CreateGroupRequest) (GroupRef, error) {
|
|
var ref GroupRef
|
|
if err := c.postJSON(ctx, "/api/v1/admin/groups", req, &ref); err != nil {
|
|
return GroupRef{}, err
|
|
}
|
|
return ref, nil
|
|
}
|