---
title: "Update swap by doing an action."
method: PATCH
path: "/orders/{order}"
tags: ["Swaps"]
---

# Update swap by doing an action.

`PATCH /orders/{order}`

## Path parameters

- `id` string, required

## Query parameters

- `action` 'initiate' | 'redeem' | 'refund' | 'instant-refund', required

## Request body

- union
  - InitiateActionRequest — Initiate the swap on the source chain. The request body is chain-specific — refer to the **Initiate** section above for EVM, Solana, and Starknet request formats.
  - RedeemActionRequest
    - `secret` string, required
  - RefundActionRequest
  - InstantRefundActionRequest
    - `signatures` string[], required — A Schnorr signature generated by the initiator over the instant refund hash obtained from the [instant refund hash endpoint](./get-instant-refund-hash). This signature represents the initiator’s partial spend authorization for the Taproot script controlling the initiator's UTXO. Submitting this signature allows the solver to later provide its own Schnorr signature to fully satisfy the Taproot instant refund leaf and broadcast the refund transaction instantly, without requiring further initiator interaction.

## Response `200`

Executed action successfully.

- ActionResponse
  - `status` 'Ok' | 'Error'
  - `error` string, nullable
  - `result` string, required

---

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