---
title: "Create the metadata for a file before uploading. The State of the File should be 'Created'."
method: POST
path: "/api/v2/Files"
tags: ["Files"]
---

# Create the metadata for a file before uploading. The State of the File should be 'Created'.

`POST /api/v2/Files`

## Request

- Base URL: `https://secure.agco-ats.com`
- URL: `https://secure.agco-ats.com/api/v2/Files`
- Auth: none declared

No Documentation Found.

## Request body

- GlobalResourcesSharedModelsFileDownload: A language used for string translations.
  - `Id` string: The Id of the file.
  - `Name` string, required: The name of the file when downloaded.
  - `Description` string, required: The description of the file.
  - `ContentType` string, required: The type of file; sent as the content-type header.
  - `State` 'Created' | 'Available' | 'Removed', required: Indicates the state of this file. Must be 'Created' when created.
  - `IsPublic` boolean, required: Indicates whether this file is available to the public for download.
  - `Size` integer: The size of the file in bytes. Null until assigned by server when marked as 'Available'. Read Only
  - `CRC` string, required: The crc of the file (SHA256, HEX-encoded). Must be provided when creating a file.
  - `Path` string, required: The Path of the file.

## Response `200`

OK

- string

## Other responses

- `default`: API Error Response

---

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