---
title: "Edit Simple Application"
method: PUT
path: "/simple/applications/{application_id}"
tags: ["Applications"]
---

# Edit Simple Application

`PUT /simple/applications/{application_id}`

Edit an application and commit a new revision if configuration changed.

Fields other than `id` in the request body are treated as changes and
produce a new committed revision. Supplying `data` changes the
configuration; supplying only header fields (`flags`, `tags`, `meta`)
still produces a new revision with the updated header but the
existing `data`. Editing the application `name` is currently
disabled and returns `400`.

## Path parameters

- `application_id` string, uuid, required

## Request body

- SimpleApplicationEditRequest — Request body for `PUT /simple/applications/{application_id}`. Commits a new revision on the application's variant whenever fields other than `id` are present. If only `id` is sent, the current state is returned without committing.
  - `application` SimpleApplicationEdit, required
    - `flags` SimpleApplicationFlags
      - `is_application` boolean
      - `is_evaluator` boolean
      - `is_snippet` boolean
      - `is_managed` boolean
      - `is_custom` boolean
      - `is_llm` boolean
      - `is_hook` boolean
      - `is_code` boolean
      - `is_match` boolean
      - `is_feedback` boolean
      - `is_agent` boolean
      - `is_skill` boolean
      - `is_chat` boolean
      - `has_url` boolean
      - `has_script` boolean
      - `has_handler` boolean
      - `is_static` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `id` string, uuid, nullable
    - `data` SimpleApplicationDataInput
      - `uri` string, nullable
      - `url` string, nullable
      - `headers` object, nullable
      - `runtime` 'python' | 'typescript' | 'javascript', nullable
      - `script` string, nullable
      - `schemas` JsonSchemasInput
        - `parameters` object, nullable
        - `inputs` object, nullable
        - `outputs` object, nullable
      - `parameters` object, nullable

## Response `200`

Successful Response

- SimpleApplicationResponse — Simple-application single-row response envelope.
  - `count` integer — `1` when the application was found, `0` otherwise.
  - `application` SimpleApplication
    - `flags` SimpleApplicationFlags
      - `is_application` boolean
      - `is_evaluator` boolean
      - `is_snippet` boolean
      - `is_managed` boolean
      - `is_custom` boolean
      - `is_llm` boolean
      - `is_hook` boolean
      - `is_code` boolean
      - `is_match` boolean
      - `is_feedback` boolean
      - `is_agent` boolean
      - `is_skill` boolean
      - `is_chat` boolean
      - `has_url` boolean
      - `has_script` boolean
      - `has_handler` boolean
      - `is_static` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `slug` string, nullable
    - `id` string, uuid, nullable
    - `data` SimpleApplicationDataOutput
      - `uri` string, nullable
      - `url` string, nullable
      - `headers` object, nullable
      - `runtime` 'python' | 'typescript' | 'javascript', nullable
      - `script` string, nullable
      - `schemas` JsonSchemasOutput
        - `parameters` object, nullable
        - `inputs` object, nullable
        - `outputs` object, nullable
      - `parameters` object, nullable
    - `variant_id` string, uuid, nullable
    - `revision_id` string, uuid, nullable
  - `additional_context` SimpleApplicationAdditionalContext — Platform-supplied read-only context for a simple-application response.
    - `playground_build_kit` PlaygroundBuildKitContext — Read-only playground build-kit context for one inspect/fetch response.
      - `agent_template_overlay` AgentTemplateOverlay — A documented subset of the `parameters.agent` authoring shape. Carries the platform-owned tools, authoring skills, and sandbox elevation the playground layers on top of the draft for the build kit. Entries are intentionally open (platform-op configs and `@ag.embed` references), so they are typed loosely: the full `parameters.agent` authoring template has no shared Pydantic model today (it rides as free-form `data.parameters`), and the SDK's runtime `AgentTemplate` is the flattened parse with different field names, so neither can be reused 1:1 to type this overlay.
        - `tools` object[] — Platform tool configs and `@ag.embed` tool references.
        - `skills` object[] — `@ag.embed` references to authoring skills.
        - `sandbox` object, nullable — Sandbox section overlay, e.g. `{permissions: {...}}`.

## Other responses

- `422` — Validation Error

---

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