Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0812a9be37 |
@@ -109,12 +109,14 @@ export class CoderClient {
|
|||||||
|
|
||||||
async deleteWorkspace(workspaceId: string): Promise<void> {
|
async deleteWorkspace(workspaceId: string): Promise<void> {
|
||||||
const res = await fetch(
|
const res = await fetch(
|
||||||
`${this.baseUrl}/api/v2/workspaces/${workspaceId}`,
|
`${this.baseUrl}/api/v2/workspaces/${workspaceId}/builds`,
|
||||||
{
|
{
|
||||||
method: "DELETE",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
"Coder-Session-Token": this.token,
|
"Coder-Session-Token": this.token,
|
||||||
},
|
},
|
||||||
|
body: JSON.stringify({ transition: "delete" }),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user