From e1450a622f28a6a24d567641471d861631e5d93b Mon Sep 17 00:00:00 2001 From: Dana Fallon <8871189+danafallon@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:43:59 -0800 Subject: [PATCH] Rename 'deploy' payload keys to 'deployment' (#105) --- internal/artieclient/deployment.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/artieclient/deployment.go b/internal/artieclient/deployment.go index 9b07e26..9c825bb 100644 --- a/internal/artieclient/deployment.go +++ b/internal/artieclient/deployment.go @@ -114,7 +114,7 @@ func (DeploymentClient) basePath() string { } type deploymentAPIResponse struct { - Deployment deploymentWithAdvSettings `json:"deploy"` + Deployment deploymentWithAdvSettings `json:"deployment"` } type validationResponse struct { @@ -148,8 +148,8 @@ func (dc DeploymentClient) Update(ctx context.Context, deployment Deployment) (D } body := map[string]any{ - "deploy": deployment, - "startDeploy": true, + "deployment": deployment, + "startDeployment": true, } response, err := makeRequest[deploymentAPIResponse](ctx, dc.client, http.MethodPost, path, body)