Skip to content

Commit

Permalink
Merge pull request #18 from northdpole/main
Browse files Browse the repository at this point in the history
  • Loading branch information
nscuro committed Oct 16, 2023
2 parents 9894000 + 335506c commit 93d6806
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions component.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,14 @@ func (cs ComponentService) Create(ctx context.Context, projectUUID string, compo
_, err = cs.client.doRequest(req, &c)
return
}

func (cs ComponentService) Update(ctx context.Context, component Component) (c Component, err error) {
req, err := cs.client.newRequest(ctx, http.MethodPost,
"/api/v1/component",
withBody(component))
if err != nil {
return
}
_, err = cs.client.doRequest(req, &c)
return
}

0 comments on commit 93d6806

Please sign in to comment.