---
title: "edit success handler"
method: POST
path: "/w/{workspace}/workspaces/edit_success_handler"
tags: ["workspace"]
---

# edit success handler

`POST /w/{workspace}/workspaces/edit_success_handler`

## Path parameters

- `workspace` string, required

## Request body

- union — Request body for editing the workspace success handler. Accepts both new grouped format and legacy flat format for backward compatibility.
  - EditSuccessHandlerNew — New grouped format for editing success handler
    - `path` string — Path to the success handler script or flow
    - `extra_args` ScriptArgs — The arguments to pass to the script or flow
  - EditSuccessHandlerLegacy — Legacy flat format for editing success handler (deprecated, use new format)
    - `success_handler` string — Path to the success handler script or flow
    - `success_handler_extra_args` ScriptArgs — The arguments to pass to the script or flow

## Response `200`

status

---

[API](https://skmtc.dev/windmill/apis/windmill-api.md) · [All operations](https://skmtc.dev/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/7b281701c340/schema)
