---
title: "Update Run Attachment"
method: PUT
path: "/v1/run-attachments/{attachment_id}"
tags: ["run-attachments"]
---

# Update Run Attachment

`PUT /v1/run-attachments/{attachment_id}`

Update a run attachment.

Currently only supports updating the expiration date.

## Path parameters

- `attachment_id` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- RunAttachmentUpdate — Schema for updating a run attachment
  - `expires_at` string, date-time, nullable

## Response `200`

Successful Response

- RunAttachmentResponse — Run attachment response schema
  - `filename` string, required
  - `content_type` string, required
  - `attachment_type` 'input' | 'output', required
  - `target_path` string, nullable
  - `cleanup_imports_after_run` boolean
  - `id` string, uuid, required
  - `user_id` string, uuid, nullable
  - `organization_id` string, nullable
  - `run_id` string, uuid, required
  - `size_bytes` integer, required
  - `storage_path` string, required
  - `expires_at` string, date-time, nullable
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/cyberdesk-hq/apis/cyberdesk-cloud.md) · [All operations](https://skmtc.net/cyberdesk-hq/apis/cyberdesk-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cyberdesk-hq/cyberdesk-cloud/versions/830d2f48963d/schema)
