Skip to content

Commit

Permalink
Variadic serial parameter for RemoveProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Nov 4, 2022
1 parent 3b6c000 commit ef2c575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions godep/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ type ClearProfileResponse struct {
// support it (nor does it appear to be used on the server-side).
// The name parameter specifies the configured DEP name to use.
// See https://developer.apple.com/documentation/devicemanagement/remove_a_profile-c2c
func (c *Client) RemoveProfile(ctx context.Context, name string, devices []string) (*ClearProfileResponse, error) {
func (c *Client) RemoveProfile(ctx context.Context, name string, serials ...string) (*ClearProfileResponse, error) {
req := &struct {
// ProfileUUID string `json:"profile_uuid,omitempty"`
Devices []string `json:"devices"`
}{
Devices: devices,
Devices: serials,
}
resp := new(ClearProfileResponse)
return resp, c.do(ctx, name, http.MethodDelete, "/profile/devices", req, resp)
Expand Down

0 comments on commit ef2c575

Please sign in to comment.