Create a File Version
Add a new File Version to a File
Please note: All new File Versions will be content checked for Adult, Violent and Spoofing content.
POST https://{region}.getafile.io/api/v1/teams/:team_id/fileversion
This endpoint allows you to create a new File Version.
Request Body
Name
Type
Description
file_id
integer
ID of the File
filename
string
Name of the file you are uploading
fileversion
string
Base64 encoded file data
version_name
string
Name of the version
version_description
string
Description of the version
active
integer
1 for active, 0 for inactive *Please note: Files with the serving type of "content" will always be made active upon version creation
content
string
Code content of the version when the file serving type is content
{
"id": 1,
"file_id": 5,
"user_id": 1,
"filename": "Testing-1.png",
"active": 1,
"verified": 1,
"stats": {
"sizeHuman": "285.2 KB",
"size": 285210,
"ext": ".png",
"dimensions": {
"height": 1024,
"width": 1024
}
},
"created_at": "2024-04-18T19:16:05.000+10:00",
"updated_at": "2024-04-18T19:16:05.000+10:00",
"size": 285210,
"meta": {},
"version_name": "Version 1.0",
"version_description": "Version description",
"content": null
}Last updated
Was this helpful?