Edits history of script submission #5928 for ' Delete concurrency group (windmill)'

  • nativets
    One script reply has been approved by the moderators
    Ap­pro­ved
    /**
     * 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

  • nativets
    /**
     * 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