---
title: "Prepare file for new version of a file"
method: GET
path: "/api/1/files/{userFile}/upload/id"
tags: ["Files"]
deprecated: true
---

# Prepare file for new version of a file

`GET /api/1/files/{userFile}/upload/id`

> **Deprecated.**

This is the second step to create a new version of a file. After you get the credentials for the AWS SDK, you will need to call this
API for each file to get the key where to upload the file in S3. Also, keep the `version` property is this will be required when creating a
new version of the file after the upload session.

## Query parameters

- `name` string, required — Name of the file
- `size` integer, required — File size

## Request body

- object
  - `size` integer, required
  - `name` string, required

## Other responses

- `401`

---

[API](https://skmtc.net/convoflo/apis/convoflo-rest-api.md) · [All operations](https://skmtc.net/convoflo/apis/convoflo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/convoflo/convoflo-rest-api/versions/fed4481f0476/schema)
