diff --git a/component.go b/component.go index 096598e..95d54a9 100644 --- a/component.go +++ b/component.go @@ -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 +}