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.
Rules engine applies here
Cross-platform submissions are supported on this endpoint. To target particular platforms, see the platforms
body parameter above.
Request
Error Codes
Status Code | Error Ref | Description |
---|---|---|
403 | 15006 | The authenticated user does not have permission to upload modfiles for the specified mod, ensure the user is a team manager or administrator. |
422 | 13002 | The payload passed in the request was unable to be validated/read by mod.io, please try again. |
Responses
- 201
- 403
- 422
Resource Created
Response Headers
URL to newly created resource
The authenticated user does not have permission to upload modfiles for the specified mod, ensure the user is a team manager or administrator.
The payload passed in the request was unable to be validated/read by mod.io, please try again.