Admin
Packs

Mint a signed upload URL for a pack-opening template GLB

Changed on

Team templates (canManageTeam) land at teams/{teamId}/templates/. Global templates require scope "global" and an admin, and land at templates/. Omitting teamId without scope global is rejected. The file never passes through this route: PUT it to signedUrl, then POST /api/admin/packs/confirm-upload with kind "glb-template" before persisting modelUrl and glbTemplateVersion. Validation: .glb, MIME model/gltf-binary or application/octet-stream, 1 byte–10MB, magicBytes start with glTF. Header, material slots, and extensions are checked on confirm.

post/api/admin/packs/upload-glb-template

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Request body

teamIdstring

Team id or slug. Required unless scope is global.

scope'team' | 'global'
fileNamestring required
fileSizeinteger required
mimeType'model/gltf-binary' | 'application/octet-stream' required
magicBytesstring byte required

Base64 of the file's first ≥4 bytes.

Response

{ signedUrl, token, path, publicUrl, bucket, contentType }

successtrue required

Changes