AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'file_version' table (ID prefix 'five_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
File Version (file_version)
Historical version control of a specific file in the Valstorm File System.
Python SDK & PlatformContext Example
# 1. Query file_version via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM file_version ORDER BY created_date DESC LIMIT 25")
# 2. Create file_version record (Generates 'five_...' Base62 ID)
created = await platform.records.create("file_version", [
{"name": "Example File Version"}
])| Field API Name | Type / Format | Lookup Target | Flags | Description |
|---|---|---|---|---|
| id | string | — | Id | |
| name | string | — | Name | |
| created_date | stringdate-time | — | Created Date | |
| modified_date | stringdate-time | — | Modified Date | |
| created_by | stringlookup | → user (string ID) | Created By | |
| modified_by | stringlookup | → user (string ID) | Modified By | |
| owner | stringlookup | → user (string ID) | Owner | |
| file | stringlookup | → file (string ID) | required | The file this version relates to |
| version_number | number | — | required | Version Number |
| location | string | — | required | Where in s3 it is located |
| link | string | — | required | A link to the location in s3 |
| extension | string | — | required | The file extension |
| content_type | string | — | required | What type of content the file is |
| file_size | number | — | required | How big the file is in bytes |
| checksum | string | — | Checksum | |
| change_summary | string | — | Change Summary | |
| is_active | boolean | — | required | Is Active |
