---
title: "Update an existing debug config"
method: PATCH
path: "/debugconfig/{debugConfigId}"
tags: ["debugconfig"]
---

# Update an existing debug config

`PATCH /debugconfig/{debugConfigId}`

## Path parameters

- `debugConfigId` string, required

## Request body

- DebugConfig
  - `id` string
  - `attachment` Attachment, required
    - `type` 'service' | 'container', required
    - `name` string, required
  - `breakpoints` Breakpoint[]
    - `location` string, required
  - `image` string, required
  - `debugger` string
  - `immediately` boolean
  - `active` boolean

## Response `200`

OK

- DebugConfig
  - `id` string
  - `attachment` Attachment, required
    - `type` 'service' | 'container', required
    - `name` string, required
  - `breakpoints` Breakpoint[]
    - `location` string, required
  - `image` string, required
  - `debugger` string
  - `immediately` boolean
  - `active` boolean

## Other responses

- `400` — Invalid ID supplied
- `404` — Debug config not found
- `422` — Validation exception

## Changes

- **2017-08-22** `7d244be4e5ca` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/solo-io/apis/squash-server/changes/debugconfig/:debugConfigId/patch.md)

---

[API](https://skmtc.dev/solo-io/apis/squash-server.md) · [All operations](https://skmtc.dev/solo-io/apis/squash-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/solo-io/squash-server/revisions/7d244be4e5ca/schema)
