Admin
Packs

Confirm a signed pack / collectible asset upload

Changed on

Team managers only, except a global template at templates/ which requires an admin. Revalidates the stored object: path prefix, size equals expectedSize, and magic. kind glb-template downloads the object (max 10MB), rejects text/html, Draco, and KTX2, accepts EXT_meshopt_compression, and returns glbTemplateVersion, glbIdleClip, glbMinScene (3 for meshopt, else null) and material slots. Version 0 is pack FRONT/BACK and requires KHR_texture_transform on both (UV window on a 1024x1536 canvas). Version 1 is the card case (TeamArt/CardBack). Version 2 is the combined opening (FRONT, BACK, TeamArt, CardBack) with a full-bleed 1104x1536 pack-face canvas and no texture transform. Declaring version 0 for a file that satisfies version 2 is rejected. Pack art kinds contain into the version-0 window or the version-2 1104x1536 canvas. Card-case art kinds cover a 1200x1680 canvas. glbTemplateVersion is never defaulted. glbIdleClip is null unless it is CaseIdle on version 2.

post/api/admin/packs/confirm-upload

Request

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

Request body

teamIdstring
pathstring required
kind'model' | 'video' | 'artwork' | 'collectible-model' | 'collectible-video' | 'glb-template' | 'pack-art-front' | 'pack-art-back' | 'card-case-art' | 'card-back' required
expectedSizeinteger required
publicUrlstring

Echoed back when valid.

glbTemplateVersioninteger

kind glb-template: omitted detects the contract. Never defaulted. 0 is pack FRONT/BACK with KHR_texture_transform. 2 is the combined opening and cannot be declared as 0. Pack art kinds: 0 selects the 1024x1536 UV window; 2 selects the full-bleed 1104x1536 canvas.

glbIdleClipstring nullable

kind glb-template only. Null or omitted means idle is off. The only other value is CaseIdle, and only when glbTemplateVersion is 2.

Response

{ path, kind, size, publicUrl, bucket, confirmed, glbTemplateVersion?, glbIdleClip?, glbMinScene?, templateKind?, slots? }

successtrue required

Changes