Create a new version
POST /version
This route creates a new version of the engine. Each new version must include at least one attached file, except when the new version’s status is draft
.
The file_id
field, which uniquely identifies each file, must be specified and can be obtained from the API release page.
Authorizations
Request Body required
object
object
Name of the version
Version 1.0.0
The version number. Ideally will follow semantic versioning
1.0.0
The changelog for this version
List of changes in this version...
A direct URL to the changelog for this version
https://example.com/changelog
The release channel for this version
release
The current status of the version
listed
URL to the GitHub release
https://github.com/username/repo/releases/tag/example
List of files associated with the version
object
Unique identifier for the file
8828197
Target platform for the file (e.g., Windows, Linux, macOS)
windows
Architecture for the file (e.g., x86, x64, arm64)
x64
Hash (e.g., SHA-512) for verifying file integrity
abc123def456...
Responses
200
Version created successfully
object
Name of the version
Version 1.0.0
The version number. Ideally will follow semantic versioning
1.0.0
The changelog for this version
List of changes in this version...
A direct URL to the changelog for this version
https://example.com/changelog
The release channel for this version
release
The current status of the version
listed
A unique identifier for this version, using the CUID2 format
uohlw2d5lfh5pdgaavtsw9v6
The unique identifier of the author who published this version, formatted as CUID2
dtgc58bc5olg7wlvhb10xpy6
The date this version was published, in ISO 8601 format
2024-11-15T10:00:00Z
A list of files available for download for this version
object
Hash (e.g., SHA-512) for verifying file integrity
abc123def456...
A direct link to the file
https://example.com/my_file.exe
The name of the file
my_file.exe
The size of the file in bytes
1234567
Architecture for the file (e.g., x86, x64, arm64)
x64
URL to the GitHub release
https://github.com/username/repo/releases/tag/example
400
Request was invalid, see given error
object
A short error code or message indicating the type of error
invalid_input
A detailed message explaining the reason for the error
The input JSON is missing required fields or contains invalid values
403
Forbidden - You are not authorized to create this version.