Skip to content

Commit 3f1d79c

Browse files
authored
fix: change terminate endpoint (#7082)
1 parent 5ef6231 commit 3f1d79c

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.changeset/healthy-dogs-exist.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
Change to new terminate instance workflow endpoint

packages/wrangler/src/workflows/commands/instances/terminate.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ defineCommand({
5151
}
5252

5353
await fetchResult(
54-
`/accounts/${accountId}/workflows/${args.name}/instances/${id}`,
54+
`/accounts/${accountId}/workflows/${args.name}/instances/${id}/status`,
5555
{
56-
method: "DELETE",
56+
method: "PATCH",
57+
headers: {
58+
"Content-Type": "application/json",
59+
},
60+
body: JSON.stringify({ status: "terminate" }),
5761
}
5862
);
5963

0 commit comments

Comments
 (0)