Skip to content

Commit

Permalink
Merge pull request #2 from port-labs/PORT-1850-port-entities-api-supp…
Browse files Browse the repository at this point in the history
…ort-patch-entities-with-the-upsert-route-implement-the-change-in-the-k-8-s-exporter

Add merge=true query param to create entity
  • Loading branch information
talsabagport authored Nov 13, 2022
2 parents 2ccb88c + e672917 commit a6a4dc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/port/cli/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (c *PortClient) CreateEntity(ctx context.Context, e *port.Entity, runID str
SetBody(e).
SetPathParam(("blueprint"), e.Blueprint).
SetQueryParam("upsert", "true").
SetQueryParam("merge", "true").
SetQueryParam("run_id", runID).
SetResult(&pb).
Post(url)
Expand Down

0 comments on commit a6a4dc0

Please sign in to comment.