---
title: "Changes to Attach"
method: POST
path: "/v1/session/attach_file"
---

# Changes to Attach

`POST /v1/session/attach_file`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 5 revisions.

- **2026-07-17** `cc76ee2bed1c`: 48 breaking, 9 warning, 3 info
- **2025-05-04** `d7e615a9c1d6`: 3 breaking, 58 info

## Changes

- **2026-07-17** `cc76ee2bed1c`: 48 breaking, 9 warning, 3 info
  - removed the enum value `application/json` of the request property `mime_type`
  - removed the enum value `application/jsonl` of the request property `mime_type`
  - removed the enum value `application/msword` of the request property `mime_type`
  - removed the enum value `application/octet-stream` of the request property `mime_type`
  - removed the enum value `application/pdf` of the request property `mime_type`
  - removed the enum value `application/rtf` of the request property `mime_type`
  - removed the enum value `application/vnd.ms-excel` of the request property `mime_type`
  - removed the enum value `application/vnd.ms-powerpoint` of the request property `mime_type`
  - removed the enum value `application/vnd.oasis.opendocument.text` of the request property `mime_type`
  - removed the enum value `application/vnd.openxmlformats-officedocument.presentationml.presentation` of the request property `mime_type`
  - removed the enum value `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` of the request property `mime_type`
  - removed the enum value `application/vnd.openxmlformats-officedocument.wordprocessingml.document` of the request property `mime_type`
  - removed the enum value `audio/mpeg` of the request property `mime_type`
  - removed the enum value `audio/ogg` of the request property `mime_type`
  - removed the enum value `audio/wav` of the request property `mime_type`
  - removed the enum value `image/avif` of the request property `mime_type`
  - removed the enum value `image/gif` of the request property `mime_type`
  - removed the enum value `image/jpeg` of the request property `mime_type`
  - removed the enum value `image/png` of the request property `mime_type`
  - removed the enum value `image/svg+xml` of the request property `mime_type`
  - removed the enum value `image/tiff` of the request property `mime_type`
  - removed the enum value `image/webp` of the request property `mime_type`
  - removed the enum value `text/c` of the request property `mime_type`
  - removed the enum value `text/c++` of the request property `mime_type`
  - removed the enum value `text/css` of the request property `mime_type`
  - removed the enum value `text/csv` of the request property `mime_type`
  - removed the enum value `text/go` of the request property `mime_type`
  - removed the enum value `text/html` of the request property `mime_type`
  - removed the enum value `text/java` of the request property `mime_type`
  - removed the enum value `text/javascript` of the request property `mime_type`
  - removed the enum value `text/kotlin` of the request property `mime_type`
  - removed the enum value `text/markdown` of the request property `mime_type`
  - removed the enum value `text/perl` of the request property `mime_type`
  - removed the enum value `text/php` of the request property `mime_type`
  - removed the enum value `text/plain` of the request property `mime_type`
  - removed the enum value `text/python` of the request property `mime_type`
  - removed the enum value `text/ruby` of the request property `mime_type`
  - removed the enum value `text/rust` of the request property `mime_type`
  - removed the enum value `text/scala` of the request property `mime_type`
  - removed the enum value `text/serialized-json` of the request property `mime_type`
  - …20 more
- **2025-05-04** `d7e615a9c1d6`: 3 breaking, 58 info
  - request property `mime_type` was restricted to a list of enum values
  - the request property `mime_type` became required
  - request property `mime_type` list-of-types was narrowed by removing types `null` from media type `application/json`
  - added the new `application/json` enum value to the request property `mime_type`
  - added the new `application/jsonl` enum value to the request property `mime_type`
  - added the new `application/msword` enum value to the request property `mime_type`
  - added the new `application/octet-stream` enum value to the request property `mime_type`
  - added the new `application/pdf` enum value to the request property `mime_type`
  - added the new `application/rtf` enum value to the request property `mime_type`
  - added the new `application/vnd.ms-excel` enum value to the request property `mime_type`
  - added the new `application/vnd.ms-powerpoint` enum value to the request property `mime_type`
  - added the new `application/vnd.oasis.opendocument.text` enum value to the request property `mime_type`
  - added the new `application/vnd.openxmlformats-officedocument.presentationml.presentation` enum value to the request property `mime_type`
  - added the new `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` enum value to the request property `mime_type`
  - added the new `application/vnd.openxmlformats-officedocument.wordprocessingml.document` enum value to the request property `mime_type`
  - added the new `audio/mpeg` enum value to the request property `mime_type`
  - added the new `audio/ogg` enum value to the request property `mime_type`
  - added the new `audio/wav` enum value to the request property `mime_type`
  - added the new `image/avif` enum value to the request property `mime_type`
  - added the new `image/gif` enum value to the request property `mime_type`
  - added the new `image/jpeg` enum value to the request property `mime_type`
  - added the new `image/png` enum value to the request property `mime_type`
  - added the new `image/svg+xml` enum value to the request property `mime_type`
  - added the new `image/tiff` enum value to the request property `mime_type`
  - added the new `image/webp` enum value to the request property `mime_type`
  - added the new `text/c` enum value to the request property `mime_type`
  - added the new `text/c++` enum value to the request property `mime_type`
  - added the new `text/css` enum value to the request property `mime_type`
  - added the new `text/csv` enum value to the request property `mime_type`
  - added the new `text/go` enum value to the request property `mime_type`
  - added the new `text/html` enum value to the request property `mime_type`
  - added the new `text/java` enum value to the request property `mime_type`
  - added the new `text/javascript` enum value to the request property `mime_type`
  - added the new `text/kotlin` enum value to the request property `mime_type`
  - added the new `text/markdown` enum value to the request property `mime_type`
  - added the new `text/perl` enum value to the request property `mime_type`
  - added the new `text/php` enum value to the request property `mime_type`
  - added the new `text/plain` enum value to the request property `mime_type`
  - added the new `text/python` enum value to the request property `mime_type`
  - added the new `text/ruby` enum value to the request property `mime_type`
  - …21 more

---

[Operation](https://skmtc.dev/google/apis/sec-gemini/docs/v1/session/attach_file/post.md) - [API](https://skmtc.dev/google/apis/sec-gemini.md) - [Page](https://skmtc.dev/google/apis/sec-gemini/changes/v1/session/attach_file/post)
