/**
* Delete concurrency group
*
*/
export async function main(concurrency_id: string) {
const url = new URL(`${BASE_URL}/api/concurrency_groups/${concurrency_id}`);
const response = await fetch(url, {
method: "DELETE",
headers: {
Authorization: "Bearer " + WM_TOKEN,
},
body: undefined,
});
if (!response.ok) {
const text = await response.text();
throw new Error(`${response.status} ${text}`);
}
return await response.json();
}
Submitted by hugo697 370 days ago
/**
* Delete concurrency group
*
*/
export async function main(concurrency_id: string) {
const url = new URL(`${BASE_URL}/api/concurrency_groups/${concurrency_id}`);
const response = await fetch(url, {
method: "DELETE",
headers: {
Authorization: "Bearer " + WM_TOKEN,
},
body: undefined,
});
if (!response.ok) {
const text = await response.text();
throw new Error(`${response.status} ${text}`);
}
return await response.json();
}
Submitted by hugo697 797 days ago