---
title: "Update the metadata for a file. Size may not be modified by the client."
method: PUT
path: "/api/v2/Files/{ID}"
tags: ["Files"]
---

# Update the metadata for a file. Size may not be modified by the client.

`PUT /api/v2/Files/{ID}`

## Request

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

Update the metadata for a file. Size may not be modified by the client. 
                Set status to 'Available' to publish a file. The file must be uploaded.
                Set status to 'Created' to reset a file's contents and re-upload. 
                A file may only be 'Removed' by the DELETE method.

## Path parameters

- `ID` string, required

## 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 `204`

No Content

## 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)
