diff --git a/3.0/connectwise/requests.go b/3.0/connectwise/requests.go index 14fe73b..e59ef3a 100644 --- a/3.0/connectwise/requests.go +++ b/3.0/connectwise/requests.go @@ -20,8 +20,8 @@ type Request struct { PageSize int } -//Patch is a struct which holds the required fields to make a PATCH request -type Patch struct { +//PatchString is a struct which holds the required fields to make a PATCH request +type PatchString struct { Op string `json:"op"` Path string `json:"path"` Value string `json:"value"` diff --git a/3.0/connectwise/service.go b/3.0/connectwise/service.go index d12135d..8d9cd3e 100644 --- a/3.0/connectwise/service.go +++ b/3.0/connectwise/service.go @@ -600,8 +600,8 @@ func (cw *Site) GetBoards() (*[]Board, error) { //AssignTicketToTeam will set the team/id of a ticket func (cw *Site) AssignTicketToTeam(ticketID, teamID int) (*Ticket, error) { - patches := &[]Patch{} - patch := &Patch{ + patches := &[]PatchString{} + patch := &PatchString{ Op: "replace", Path: "team/id", Value: strconv.Itoa(teamID)}