Dev's NoxDev's Nox
Avatars

Upload file bytes

Stream the raw file content (application/octet-stream). The bytes are verified and the slot is queued for validation (status "queued"); the bundle analysis and the storage write then run in the background ("processing" → "completed", or "failed"). Poll the file until it is stable (no refetch_at). Requires owner/contributor/admin. Optional integrity headers: Content-Hash, Content-Signature, Content-Length, Content-Disposition.

PUT
/api/avatars/{id}/releases/{releaseId}/files/{fileId}

Authorization

bearer
AuthorizationBearer token

User session token. Obtained from POST /api/auth/login.

In: header

Path Parameters

id*string
releaseId*string
fileId*string

Response Body

application/json

curl -X PUT "https://loading/api/avatars/string/releases/string/files/string"
{
  "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"
}