Skip to main content

Add Modfile

POST 

/games/:game-id/mods/:mod-id/files

Upload a file for the corresponding mod. Successful request will return the newly created Modfile Object. Ensure that the release you are uploading is stable and free from any critical issues. Files are scanned upon upload, any users who upload malicious files will have their accounts closed.

NOTE: This endpoint does not support input_json even if you base64-encode your file, due to the already-large file sizes of some releases and base64-encoding inflating the filesize.

NOTE: To upload files greater than 100MB, we recommend using the Multipart Uploads system. This endpoint supports files up to a max of 500MB in size.

tip

Rules engine applies here

info

Cross-platform submissions are supported on this endpoint. To target particular platforms, see the platforms body parameter above.

Request

Error Codes

Status CodeError RefDescription
40315006The authenticated user does not have permission to upload modfiles for the specified mod, ensure the user is a team manager or administrator.
42213002The payload passed in the request was unable to be validated/read by mod.io, please try again.

Responses

Resource Created

Response Headers
    Location

    URL to newly created resource