diff --git a/cmd/execute/helpers.go b/cmd/execute/helpers.go index efc2976..eb57d32 100644 --- a/cmd/execute/helpers.go +++ b/cmd/execute/helpers.go @@ -163,7 +163,7 @@ func createNewVersion(version *types.WorkflowVersionDetailed) *types.WorkflowVer os.Exit(0) } - resp := request.Trickest.Post().Body(data).DoF("library/workflow-version/") + resp := request.Trickest.Post().Body(data).DoF("workflow-version/") if resp == nil { fmt.Println("Error: Couldn't create version!") os.Exit(0) @@ -247,7 +247,7 @@ func uploadFile(filePath string) string { } func GetLatestWorkflowVersion(workflowID uuid.UUID) *types.WorkflowVersionDetailed { - resp := request.Trickest.Get().DoF("library/workflow-version/latest/?workflow=%s", workflowID) + resp := request.Trickest.Get().DoF("workflow-version/latest/?workflow=%s", workflowID) if resp == nil { fmt.Println("Error: Couldn't get latest workflow version!") os.Exit(0) diff --git a/cmd/output/output.go b/cmd/output/output.go index 6078a9e..4750f4f 100644 --- a/cmd/output/output.go +++ b/cmd/output/output.go @@ -538,7 +538,7 @@ func GetRuns(workflowID uuid.UUID, pageSize int) []types.Run { } func GetWorkflowVersionByID(versionID, fleetID uuid.UUID) *types.WorkflowVersionDetailed { - resp := request.Trickest.Get().DoF("library/workflow-version/%s/", versionID) + resp := request.Trickest.Get().DoF("workflow-version/%s/", versionID) if resp == nil { fmt.Println("Error: Couldn't get workflow version!") return nil @@ -568,7 +568,7 @@ func GetWorkflowVersionByID(versionID, fleetID uuid.UUID) *types.WorkflowVersion } func GetWorkflowVersionMaxMachines(version, fleet uuid.UUID) (types.Machines, error) { - resp := request.Trickest.Get().DoF("library/workflow-version/%s/max-machines/?fleet=%s", version, fleet) + resp := request.Trickest.Get().DoF("workflow-version/%s/max-machines/?fleet=%s", version, fleet) if resp == nil { return types.Machines{}, fmt.Errorf("couldn't get workflow version's maximum machines") }