---
title: "Modify an existing attachment."
method: PATCH
path: "/debugattachment/{debugAttachmentId}"
tags: ["debugattachment"]
---

# Modify an existing attachment.

`PATCH /debugattachment/{debugAttachmentId}`

Modify an existing attachment.

## Path parameters

- `debugAttachmentId` string, required

## Request body

- DebugAttachment
  - `metadata` ObjectMeta
    - `name` string
    - `version` string
  - `spec` DebugAttachmentSpec, required
    - `attachment` Attachment, required
    - `debugger` string
    - `image` string
    - `process_name` string
    - `node` string
    - `match_request` boolean — If true, this attachment must match a pending debug request.
  - `status` DebugAttachmentStatus
    - `state` 'none' | 'attaching' | 'attached' | 'error'
    - `debug_server_address` string

## Response `200`

Debug attachment modified

- DebugAttachment
  - `metadata` ObjectMeta
    - `name` string
    - `version` string
  - `spec` DebugAttachmentSpec, required
    - `attachment` Attachment, required
    - `debugger` string
    - `image` string
    - `process_name` string
    - `node` string
    - `match_request` boolean — If true, this attachment must match a pending debug request.
  - `status` DebugAttachmentStatus
    - `state` 'none' | 'attaching' | 'attached' | 'error'
    - `debug_server_address` string

## Other responses

- `400` — Bad request
- `404` — Not found
- `409` — Conflict
- `422` — Invalid input
- `503` — Service Unavailable

## Changes

- **2017-12-05** `96bf67aa2c37` — 1 info
  - endpoint added
- **2017-08-22** `7d244be4e5ca` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/solo-io/apis/squash-server/changes/debugattachment/:debugAttachmentId/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/03ddbf850d54/schema)
