Admin
Packs
Mint a signed upload URL for a pack-opening template GLB
Changed onTeam 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 URLhttps://app.d-sports.org
- AuthHTTP bearer
Request body
Response
{ signedUrl, token, path, publicUrl, bucket, contentType }
Changes
- info
endpoint added
- info