Function create_version

Source
pub async fn create_version(
    configuration: &Configuration,
    data: CreatableVersion,
) -> Result<Version, Error<CreateVersionError>>
Expand description

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.