v1

latestSwagger 2.02026-07-13285166341.1 KB
Files

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

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.

put/api/v2/Files/{ID}

Path parameters

IDstring required

The file's id

Request body

Idstring

The Id of the file.

Namestring required

The name of the file when downloaded.

Descriptionstring required

The description of the file.

ContentTypestring 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.

IsPublicboolean required

Indicates whether this file is available to the public for download.

Sizeinteger

The size of the file in bytes. Null until assigned by server when marked as 'Available'. Read Only

CRCstring required

The crc of the file (SHA256, HEX-encoded). Must be provided when creating a file.

Pathstring required

The Path of the file.

Response

No Content