---
title: "Update message attachment"
method: PUT
path: "/messages/{messageguid}/attachment/{attachmentguid}"
tags: ["Message", "Attachments (messages)"]
---

# Update message attachment

`PUT /messages/{messageguid}/attachment/{attachmentguid}`

## Request

- Base URL: `https://api.carbonvoice.app`
- URL: `https://api.carbonvoice.app/messages/{messageguid}/attachment/{attachmentguid}`
- Auth: one of:
  - API key in header `pxtoken`
  - OAuth 2 (implicit, authorization URL `https://api.carbonvoice.app/oauth/authorize`)

## Path parameters

- `messageguid` string, required
- `attachmentguid` string, required

## Request body

- RequestAttachment
  - `type` 'link' | 'file' | 'location' | 'ai-response-id' | 'ai-prompt-id' | 'action-item-id' | 'ask-id', required
  - `link` string, required
  - `client_id` string
  - `created_at` string, date-time, nullable
  - `filename` string, nullable
  - `mime_type` string, nullable
  - `length_in_bytes` number, nullable
  - `latitude` number, nullable
  - `longitude` number, nullable
  - `status` 'Initializing' | 'Uploading' | 'Uploaded' | 'Failed'
  - `percent_complete` number, nullable

## Response `200`

- string

---

[API](https://skmtc.dev/carbonvoice/apis/carbon-voice-api.md) · [All operations](https://skmtc.dev/carbonvoice/apis/carbon-voice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/carbonvoice/apis/carbon-voice-api/revisions/b91c5c845122?raw)
