Mods
Init file upload
Reserve a file slot and return its signed upload URL (status "awaiting").
Authorization
bearerAuthorizationBearer token
User session token. Obtained from POST /api/auth/login.
In: header
Path Parameters
id*string
releaseId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://loading/api/mods/string/releases/string/files" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"id": 101,
"name": "my-mod-windows.zip",
"url": "https://…/files/101",
"alias": [
{
"key": "iid",
"value": "1@my-server.com"
}
],
"size": 12345678,
"mime": "application/zip",
"hashs": [
"sha256:…"
],
"uploader": "1@example.com",
"status": "completed",
"attributes": [
{
"key": "platform",
"value": "windows"
}
],
"analysis": {},
"created_at": 1789340000000,
"updated_at": 1789340060000,
"signature": "ed25519:MEQCIG9X…",
"expires_at": 1789340000000,
"refetch_at": 1789340300000
},
"error": null,
"time": 1680000000000,
"request": "/api/endpoint"
}