Module versions_api

Source

Enums§

AddFilesToVersionError
struct for typed errors of method add_files_to_version
CreateVersionError
struct for typed errors of method create_version
DeleteVersionError
struct for typed errors of method delete_version
GetProjectVersionsError
struct for typed errors of method get_project_versions
GetVersionError
struct for typed errors of method get_version
GetVersionFromIdOrNumberError
struct for typed errors of method get_version_from_id_or_number
GetVersionsError
struct for typed errors of method get_versions
ModifyVersionError
struct for typed errors of method modify_version
ScheduleVersionError
struct for typed errors of method schedule_version

Functions§

add_files_to_version
Project files are attached. .mrpack and .jar files are accepted.
create_version
This route creates a version on an existing project. There must be at least one file attached to each new version, unless the new version’s status is draft. .mrpack, .jar, .zip, and .litemod files are accepted. The request is a multipart request with at least two form fields: one is data, which includes a JSON body with the version metadata as shown below, and at least one field containing an upload file. You can name the file parts anything you would like, but you must list each of the parts’ names in file_parts, and optionally, provide one to use as the primary file in primary_file.
delete_version
get_project_versions
get_version
get_version_from_id_or_number
Please note that, if the version number provided matches multiple versions, only the oldest matching version will be returned.
get_versions
modify_version
schedule_version