Skip to content

File_Attributes

mauryaratan edited this page Feb 5, 2023 · 1 revision

File.Attributes

An object representing the resources data.

public struct Attributes: Codable 

Inheritance

Codable

Properties

variantId

The ID of the variant this file belongs to.

public let variantId: Int

identifier

The unique identifier (UUID) for this file.

public let identifier: String

name

The name of the file (e.g. example.pdf).

public let name: String

`extension`

The file extension of the file (e.g. pdf).

public let `extension`: String

downloadUrl

The unique URL to download the file. Note:​ for security reasons, download URLs are signed, expire after 1 hour and are rate-limited to 10 downloads per day per IP address.

public let downloadUrl: String

size

A positive integer in bytes representing the size of the file.

public let size: Int

sizeFormatted

The human-readable size of the file (e.g. 5.5 MB).

public let sizeFormatted: String

version

The software version of this file (if one exists, e.g. 1.0.0).

public let version: String?

sort

An integer representing the order of this file when displayed.

public let sort: Int

status

The status of the file. Either draft or published.

public let status: String

createdAt

An ISO-8601 formatted date-time string indicating when the object was created.

public let createdAt: String

updatedAt

An ISO-8601 formatted date-time string indicating when the object was last updated.

public let updatedAt: String
Types
Global Functions
Clone this wiki locally