---
title: "Update a macro"
method: POST
path: "/api/macros/{id}"
tags: ["Macros"]
---

# Update a macro

`POST /api/macros/{id}`

## Path parameters

- `id` string, required

## Request body

- Macro
  - `id` string
  - `name` string, required
  - `reversible` boolean
  - `steps` object[]

## Response `200`

Updated

- Macro
  - `id` string
  - `name` string, required
  - `reversible` boolean
  - `steps` object[]

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.net/reef-pi/apis/reef-pi-api.md) · [All operations](https://skmtc.net/reef-pi/apis/reef-pi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reef-pi/reef-pi-api/revisions/85b870dc1814/schema)
