---
title: "Upload Routine File"
method: POST
path: "/api/py/chat/routines/upload"
---

# Upload Routine File

`POST /api/py/chat/routines/upload`

## Request

- Base URL: `https://api.getauctor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getauctor.com/api/py/chat/routines/upload`
- Auth: none declared

## Request body `multipart/form-data`

- BodyUploadRoutineFileApiPyChatRoutinesUploadPost
  - `file` string, binary, required
  - `routine_id` string, required
  - `file_name` string, required

## Response `200`

Successful Response

- RoutineFileUploadResponse
  - `id` string, required
  - `fileName` string, required
  - `bucketPath` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-11** `291e79f23d09`: 1 breaking, 3 info
  - the response's body type changed from no type to `object` for status `200`
  - added the required property `bucketPath` to the response with the `200` status
  - added the required property `fileName` to the response with the `200` status
  - added the required property `id` to the response with the `200` status
- **2026-09-01** `aeb6faa3b8f0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getauctor/apis/getauctor-api/changes/api/py/chat/routines/upload/post.md)

---

[API](https://skmtc.dev/getauctor/apis/getauctor-api.md) - [All operations](https://skmtc.dev/getauctor/apis/getauctor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getauctor/apis/getauctor-api/revisions/be39c59c13f6?raw)
