---
title: "Undo the last design-system change"
method: POST
path: "/v1/teams/{teamId}/design-system/undo"
tags: ["Teams"]
---

# Undo the last design-system change

`POST /v1/teams/{teamId}/design-system/undo`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/teams/{teamId}/design-system/undo`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.spacefast.com/v1/auth/oauth2/authorize`, token URL `https://api.spacefast.com/v1/auth/oauth2/token`; client credentials, token URL `https://api.spacefast.com/v1/auth/oauth2/token`, scopes: `spaces:write`)

Restores the values and attachment references before the latest action as a new revision. actionId must be the current last action and expectedRevision must match. Earlier historical actions cannot be selected. Reuse operationId and identical input on retry. Requires the team context beta.

## Path parameters

- `teamId` string, required

## Request body

- object
  - `operationId` string, required
  - `expectedRevision` integer, required
  - `actionId` string, uuid, required

## Response `200`

Response for status 200

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `revision` integer, required
    - `actionId` string, uuid, nullable, required
    - `unchanged` boolean, required
    - `changes` object[], required
      - `id` string, required
      - `type` 'color' | 'typography' | 'layout' | 'tone' | 'rule' | 'asset', required
      - `action` 'created' | 'updated' | 'removed' | 'restored', required

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

[API](https://skmtc.dev/spacefast/apis/spacefast-api.md) · [All operations](https://skmtc.dev/spacefast/apis/spacefast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spacefast/apis/spacefast-api/revisions/bd165bc7c983?raw)
