---
title: "Patch an app"
method: PATCH
path: "/api/apps/{id}"
tags: ["Apps"]
---

# Patch an app

`PATCH /api/apps/{id}`

Applies an RFC 7396 merge patch to the definition, with reusable elements, app actions, page elements, and model columns treated as atomic entries.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `description` string, nullable
  - `definition` object
  - `migration` object
  - `forceElementBreak` string[]

## Response `200`

Patched app

- object
  - `app` object, required
    - `id` string, required
    - `name` string, required
    - `description` string
    - `definition` union, required
      - object
      - unknown[]
        - unknown
      - string
      - number
      - boolean
    - `definitionError` object[]
      - `path` string, required
      - `message` string, required
    - `createdAt` string, required
    - `updatedAt` string, required
  - `migration` object, required
    - `scanned` integer, required
    - `backfilled` integer, required
    - `coerced` integer, required
    - `mapped` integer, required
    - `elsed` integer, required
    - `purgedValues` integer, required
    - `idxRebuilt` integer, required
    - `detachedRows` integer, required
    - `orphanFields` string[], required
    - `userConfigChanged` string[], required

## Other responses

- `400` — Invalid app definition
- `403` — Permission denied
- `404` — App not found

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/ef761849166b/schema)
