{ "projectId": "664f1a2b3c4d5e6f7a8b9c0d", "name": "Showroom", "region": "Europe", "enabled": true, "buildId": "66a0b1c2d3e4f5a6b7c8d9e0", "changed": true, "queued": true, "previousBuildStatus": "Ready", "note": "Distribution to the region's streaming servers is queued; poll GET /projects/{id}/files/{fileId}/status until it is Approved."}
{ "projectId": "664f1a2b3c4d5e6f7a8b9c0d", "name": "Showroom", "region": "Europe", "enabled": true, "buildId": "665a2b3c4d5e6f7a8b9c0e1f", "changed": false, "queued": false, "previousBuildStatus": "Approved", "note": "This build is already active and approved; nothing was changed. Send {\"redistribute\": true} to copy it to the region's streaming servers again."}
{ "code": "CONFLICT", "message": "Build is \"Extracting & Scanning\" and cannot be set active yet. It must have been processed (Ready or Approved); failed or rejected builds need a new upload.", "status": "Extracting & Scanning"}
Set Active Build
Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.
{ "projectId": "664f1a2b3c4d5e6f7a8b9c0d", "name": "Showroom", "region": "Europe", "enabled": true, "buildId": "66a0b1c2d3e4f5a6b7c8d9e0", "changed": true, "queued": true, "previousBuildStatus": "Ready", "note": "Distribution to the region's streaming servers is queued; poll GET /projects/{id}/files/{fileId}/status until it is Approved."}
{ "projectId": "664f1a2b3c4d5e6f7a8b9c0d", "name": "Showroom", "region": "Europe", "enabled": true, "buildId": "665a2b3c4d5e6f7a8b9c0e1f", "changed": false, "queued": false, "previousBuildStatus": "Approved", "note": "This build is already active and approved; nothing was changed. Send {\"redistribute\": true} to copy it to the region's streaming servers again."}
{ "code": "CONFLICT", "message": "Build is \"Extracting & Scanning\" and cannot be set active yet. It must have been processed (Ready or Approved); failed or rejected builds need a new upload.", "status": "Extracting & Scanning"}
Choose which build the project serves. The build is marked Ready, the project is switched on, and distribution to the region’s streaming servers is queued. Viewers get the new build once it reaches Approved; poll Build Status for that.
Scope: control. Team members need the Uploader role or above: deploying a build is a build job, not a project change. Limited to 30 control calls per minute per account.
Only a build the pipeline has finished processing can be set active: status Ready, Approved, Distribute or Distributing to Servers. A build still downloading or scanning is refused with 409; a failed or rejected build needs a new upload.
Idempotent. Posting the build that is already live and approved changes nothing: the response has changed: false and queued: false, and the project is switched on if it was off. Send redistribute: true to copy that build to the region’s streaming servers again, for example after a server was rebuilt.
{ "projectId": "664f1a2b3c4d5e6f7a8b9c0d", "name": "Showroom", "region": "Europe", "enabled": true, "buildId": "66a0b1c2d3e4f5a6b7c8d9e0", "changed": true, "queued": true, "previousBuildStatus": "Ready", "note": "Distribution to the region's streaming servers is queued; poll GET /projects/{id}/files/{fileId}/status until it is Approved."}
{ "projectId": "664f1a2b3c4d5e6f7a8b9c0d", "name": "Showroom", "region": "Europe", "enabled": true, "buildId": "665a2b3c4d5e6f7a8b9c0e1f", "changed": false, "queued": false, "previousBuildStatus": "Approved", "note": "This build is already active and approved; nothing was changed. Send {\"redistribute\": true} to copy it to the region's streaming servers again."}
{ "code": "CONFLICT", "message": "Build is \"Extracting & Scanning\" and cannot be set active yet. It must have been processed (Ready or Approved); failed or rejected builds need a new upload.", "status": "Extracting & Scanning"}
Upload File with autoRelease: false; keep the uploadId.
2
Wait for processing
Poll Build Status until state is ready_for_activation, or listen for the build.ready webhook (build.saving fires earlier, while the build is still being processed — activating then is refused with 409).
3
Activate
Call this endpoint with the uploadId.
4
Wait for distribution
Poll Build Status until state is live. Optionally End Sessions so current viewers reconnect onto the new build.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Streampixel","colors":{"primary":"#00B8E6","light":"#5BDFFF","dark":"#0098C2"},"logo":{"light":"https://mintcdn.com/streampixel/3A9zLaQxhTCIH06h/logo/logo.png?fit=max\u0026auto=format\u0026n=3A9zLaQxhTCIH06h\u0026q=85\u0026s=97d4efed69a7ba6432871781617e39fe","dark":"https://mintcdn.com/streampixel/3A9zLaQxhTCIH06h/logo/logo.png?fit=max\u0026auto=format\u0026n=3A9zLaQxhTCIH06h\u0026q=85\u0026s=97d4efed69a7ba6432871781617e39fe"},"favicon":"https://mintcdn.com/streampixel/3A9zLaQxhTCIH06h/favicon.png?fit=max\u0026auto=format\u0026n=3A9zLaQxhTCIH06h\u0026q=85\u0026s=62bf1ddb75c1efac5b837698245aa6ed","appearance":{"default":"dark"},"background":{"decoration":"gradient","color":{"light":"#FFFFFF","dark":"#0A0A0A"}},"navbar":{"links":[{"href":"https://status.streampixel.io","label":"Status"},{"href":"mailto:support@streampixel.io","label":"Support"},{"href":"https://dashboard.streampixel.io","label":"Dashboard"}],"primary":{"type":"button","label":"Start free","href":"https://dashboard.streampixel.io"}},"footer":{"socials":{"github":"https://github.com/infinity-void-metaverse","x":"https://x.com/streampixel","linkedin":"https://www.linkedin.com/company/streampixel"},"links":[{"header":"Product","items":[{"label":"Dashboard","href":"https://dashboard.streampixel.io"},{"label":"Pricing","href":"https://streampixel.io/pricing"},{"label":"Status","href":"https://status.streampixel.io"}]},{"header":"Developers","items":[{"label":"Get Started","href":"/resources/quick-start-guide/register-and-sign-in"},{"label":"Web SDK","href":"/resources/web-sdk/getting-started/overview"},{"label":"REST API","href":"/resources/api-reference/overview"},{"label":"Example app","href":"https://github.com/infinity-void-metaverse/Streampixel-SDK-Example"}]},{"header":"Company","items":[{"label":"Contact","href":"mailto:support@streampixel.io"},{"label":"GitHub","href":"https://github.com/infinity-void-metaverse"}]}]},"search":{"prompt":"Ask the docs..."},"seo":{"indexing":"navigable"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"dark","latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"streampixel","hasAudioNarration":false,"actualSubdomain":"streampixel","customDomains":["docs.streampixel.io"],"gitSource":{"type":"github","owner":"infinity-void-metaverse","repo":"streampixel-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aeb48981ffad4413901da2b","collectionId":"7f926d3b-77e6-4121-a0cc-6b21d37ebcb3","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aeb48981ffad4413901da2b"},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aeb48981ffad4413901da2b","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Dashboard","count":33},{"language":"default","tag":"Web SDK","count":32},{"language":"default","tag":"REST API","count":28},{"language":"default","tag":"Guides \u0026 Reference","count":19},{"language":"default","tag":"Features","count":11},{"language":"default","tag":"Reference","count":9},{"language":"default","tag":"Get Started","count":8},{"language":"default","tag":"Sessions \u0026 analytics","count":8},{"language":"default","tag":"Project settings","count":8},{"language":"default","tag":"Getting started","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles/custom.css","content":":root{--sp-cyan: #00D4FF;--sp-cyan-bright: #00E5FF;--sp-cyan-soft: rgba(0, 212, 255, 0.12);--sp-cyan-glow: rgba(0, 212, 255, 0.28);--sp-cyan-fade: rgba(0, 212, 255, 0.04);--sp-teal: #1ABFB1;--sp-green: #1DB95C;--sp-bg-dark: #0A0A0A;--sp-card-dark: rgba(18, 18, 18, 0.7);--sp-card-solid: #121212;--sp-border-dark: rgba(255, 255, 255, 0.08);--sp-border-strong: rgba(255, 255, 255, 0.14)}.dark a[class*=\"card\"],.dark .card{position:relative;background:var(--sp-card-dark)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--sp-border-dark)!important;box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.04),\n 0 8px 24px rgba(0, 0, 0, 0.25);transition:transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease}.dark a[class*=\"card\"]:hover,.dark .card:hover{border-color:var(--sp-cyan-glow)!important;box-shadow:0 0 0 1px var(--sp-cyan-glow),\n 0 12px 32px rgba(0, 212, 255, 0.12),\n inset 0 1px 0 rgba(0, 212, 255, 0.06);transform:translateY(-2px)}.dark a[class*=\"card\"]::before,.dark .card::before{content:\"\";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(\n 135deg,\n rgba(0, 212, 255, 0.18) 0%,\n transparent 35%,\n transparent 65%,\n rgba(26, 191, 177, 0.14) 100%\n );-webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0.5;pointer-events:none;transition:opacity 220ms ease}.dark a[class*=\"card\"]:hover::before,.dark .card:hover::before{opacity:1}.dark a[class*=\"card\"] svg,.dark .card svg{color:var(--sp-cyan)!important}.dark pre,.dark .prose pre{position:relative;border:1px solid var(--sp-border-dark);background:#0E0E0E!important}.dark pre code{background:transparent!important}.dark :not(pre)>code{background:var(--sp-cyan-soft)!important;color:var(--sp-cyan)!important;padding:0.15em 0.4em;border-radius:4px;font-weight:500;border:1px solid rgba(0, 212, 255, 0.18)}.dark [class*=\"step\"] [class*=\"circle\"],.dark .steps-container li::before{background:linear-gradient(135deg, var(--sp-cyan), #00A8D6)!important;color:#0A0A0A!important;font-weight:700;box-shadow:0 0 16px var(--sp-cyan-glow)}.dark [class*=\"callout\"][class*=\"info\"],.dark [class*=\"callout\"][class*=\"tip\"]{border-left-color:var(--sp-cyan)!important}.dark table{border:1px solid var(--sp-border-dark);border-radius:8px;overflow:hidden;background:rgba(14, 14, 14, 0.5);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.dark thead{background:rgba(0, 212, 255, 0.05)}.dark th{color:var(--sp-cyan)!important;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;font-size:0.75em}.dark tbody tr{border-top:1px solid var(--sp-border-dark)}.dark tbody tr:hover{background:rgba(0, 212, 255, 0.04)}.dark [class*=\"sidebar\"] [class*=\"active\"]{background:var(--sp-cyan-soft)!important;color:var(--sp-cyan)!important;border-left:2px solid var(--sp-cyan);box-shadow:inset 0 0 12px rgba(0, 212, 255, 0.08)}.prose h1{letter-spacing:-0.025em;font-weight:700}.prose h2{letter-spacing:-0.02em;font-weight:650;position:relative}.prose h3{letter-spacing:-0.015em}.sp-hero{position:relative;margin:-1rem -1rem 2.75rem -1rem;padding:3.25rem 2.25rem 3.75rem;border-radius:18px;background:radial-gradient(ellipse at 75% 25%, rgba(0, 212, 255, 0.18), transparent 55%),\n radial-gradient(ellipse at 20% 85%, rgba(26, 191, 177, 0.12), transparent 50%),\n linear-gradient(180deg, #0E0E0E 0%, #080808 100%);border:1px solid var(--sp-border-strong);overflow:hidden;isolation:isolate}.sp-hero-grid{position:absolute;inset:0;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300d4ff' fill-opacity='0.05'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");-webkit-mask-image:radial-gradient(ellipse at center, black 25%, transparent 80%);mask-image:radial-gradient(ellipse at center, black 25%, transparent 80%);pointer-events:none;z-index:0}.sp-hero-glow{position:absolute;width:60%;height:140%;top:-20%;right:-10%;background:radial-gradient(ellipse at center, rgba(0, 212, 255, 0.22) 0%, transparent 60%);filter:blur(24px);pointer-events:none;z-index:0;animation:sp-hero-glow-drift 14s ease-in-out infinite}@keyframes sp-hero-glow-drift{0%,100%{transform:translate(0, 0) scale(1);opacity:0.85}50%{transform:translate(-8%, 4%) scale(1.08);opacity:1}}.sp-hero>*:not(.sp-hero-grid):not(.sp-hero-glow){position:relative;z-index:1}.sp-hero-eyebrow{display:inline-flex;align-items:center;gap:0.5rem;font-size:0.72rem;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;color:var(--sp-cyan);background:var(--sp-cyan-soft);border:1px solid rgba(0, 212, 255, 0.25);padding:0.4rem 0.85rem;border-radius:999px;margin-bottom:1.4rem;box-shadow:0 0 18px rgba(0, 212, 255, 0.12)}.sp-hero-eyebrow::before{content:\"\";width:6px;height:6px;border-radius:50%;background:var(--sp-cyan);box-shadow:0 0 8px var(--sp-cyan);animation:sp-pulse 1.6s ease-in-out infinite}@keyframes sp-pulse{0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(0, 212, 255, 0.5)}50%{opacity:0.7;box-shadow:0 0 0 6px rgba(0, 212, 255, 0)}}.sp-hero-title{font-size:clamp(2.1rem, 5.2vw, 3rem);font-weight:700;letter-spacing:-0.032em;line-height:1.08;margin:0 0 0.85rem 0;background:linear-gradient(180deg, #ffffff 0%, #b8b8b8 100%);-webkit-background-clip:text;background-clip:text;color:transparent}.sp-hero-sub{font-size:1.1rem;line-height:1.55;color:rgba(255, 255, 255, 0.72);max-width:640px;margin:0 0 1.85rem 0}.sp-hero-cta-row{display:flex;flex-wrap:wrap;gap:0.75rem}.sp-hero-cta{display:inline-flex;align-items:center;gap:0.5rem;background:linear-gradient(135deg, var(--sp-cyan-bright), #00A8D6);color:#0A0A0A!important;font-weight:600;padding:0.75rem 1.4rem;border-radius:9px;text-decoration:none!important;box-shadow:0 0 0 1px rgba(0, 212, 255, 0.5),\n 0 0 28px var(--sp-cyan-glow),\n inset 0 1px 0 rgba(255, 255, 255, 0.25);transition:transform 150ms ease, box-shadow 150ms ease}.sp-hero-cta:hover{transform:translateY(-1px);box-shadow:0 0 0 1px rgba(0, 212, 255, 0.7),\n 0 0 36px rgba(0, 212, 255, 0.45),\n inset 0 1px 0 rgba(255, 255, 255, 0.3)}.sp-hero-cta-secondary{display:inline-flex;align-items:center;gap:0.5rem;color:rgba(255, 255, 255, 0.88)!important;background:rgba(255, 255, 255, 0.03);border:1px solid var(--sp-border-strong);padding:0.75rem 1.4rem;border-radius:9px;text-decoration:none!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:border-color 150ms ease, color 150ms ease, background 150ms ease}.sp-hero-cta-secondary:hover{border-color:var(--sp-cyan-glow);color:var(--sp-cyan)!important;background:rgba(0, 212, 255, 0.05)}:root:not(.dark) .sp-hero{background:radial-gradient(ellipse at 80% 20%, rgba(0, 184, 230, 0.10), transparent 55%),\n radial-gradient(ellipse at 20% 85%, rgba(26, 191, 177, 0.08), transparent 50%),\n linear-gradient(180deg, #FAFCFE 0%, #F2F6F9 100%);border:1px solid #E5E7EB}:root:not(.dark) .sp-hero-grid{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%230098C2' fill-opacity='0.06'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")}:root:not(.dark) .sp-hero-glow{background:radial-gradient(ellipse at center, rgba(0, 184, 230, 0.12) 0%, transparent 60%)}:root:not(.dark) .sp-hero-title{background:linear-gradient(180deg, #0A0A0A 0%, #404040 100%);-webkit-background-clip:text;background-clip:text;color:transparent}:root:not(.dark) .sp-hero-sub{color:#475569}:root:not(.dark) .sp-hero-eyebrow{color:#0098C2;background:rgba(0, 184, 230, 0.08);border-color:rgba(0, 184, 230, 0.25)}:root:not(.dark) .sp-hero-cta-secondary{color:#0F172A!important;background:rgba(255, 255, 255, 0.6);border-color:#D1D5DB}:root:not(.dark) :not(pre)>code{background:rgba(0, 184, 230, 0.08)!important;color:#006B8C!important;border-color:rgba(0, 184, 230, 0.2)}.dark ::-webkit-scrollbar{width:10px;height:10px}.dark ::-webkit-scrollbar-track{background:transparent}.dark ::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.08);border-radius:5px}.dark ::-webkit-scrollbar-thumb:hover{background:rgba(0, 212, 255, 0.25)}@media (prefers-reduced-motion: reduce){.sp-hero-glow{animation:none}.sp-hero-eyebrow::before{animation:none}.dark a[class*=\"card\"],.dark .card{transition:none}}"}],"page":{"pagePath":"resources/api-reference/set-active-build","slug":"/resources/api-reference/set-active-build","pageMetadata":{"title":"Set Active Build","description":"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.","icon":"star","api":"POST https://platform.streampixel.io/api/v1/projects/{projectId}/active-build","href":"/resources/api-reference/set-active-build"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Info,ParamField,ResponseField,Step,Steps,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Choose which build the project serves. The build is marked `,_jsx(_components.code,{children:`Ready`}),`, the project is switched on, and distribution to the region’s streaming servers is queued. Viewers get the new build once it reaches `,_jsx(_components.code,{children:`Approved`}),`; poll `,_jsx(_components.a,{href:`/resources/api-reference/build-status`,children:`Build Status`}),` for that.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Scope: `,_jsx(_components.code,{children:`control`}),`. Team members need the Uploader role or above: deploying a build is a build job, not a project change. Limited to 30 control calls per minute per account.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Only a build the pipeline has finished processing can be set active: status `,_jsx(_components.code,{children:`Ready`}),`, `,_jsx(_components.code,{children:`Approved`}),`, `,_jsx(_components.code,{children:`Distribute`}),` or `,_jsx(_components.code,{children:`Distributing to Servers`}),`. A build still downloading or scanning is refused with `,_jsx(_components.code,{children:`409`}),`; a failed or rejected build needs a new upload.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Idempotent. Posting the build that is already live and approved changes nothing: the response has `,_jsx(_components.code,{children:`changed: false`}),` and `,_jsx(_components.code,{children:`queued: false`}),`, and the project is switched on if it was off. Send `,_jsx(_components.code,{children:`redistribute: true`}),` to copy that build to the region’s streaming servers again, for example after a server was rebuilt.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`projectId`,type:`string`,required:true,id:`param-project-id`,children:_jsx(_components.p,{children:`The project.`})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`An API key issued with the `,_jsx(_components.code,{children:`control`}),` scope.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`buildId`,type:`string`,required:true,id:`param-build-id`,children:_jsxs(_components.p,{children:[`The build to activate: `,_jsx(_components.code,{children:`uploadId`}),` from Upload File, or `,_jsx(_components.code,{children:`id`}),` from `,_jsx(_components.a,{href:`/resources/api-reference/list-builds`,children:`List Builds`}),`.`]})}),`\n`,_jsx(ParamField,{body:`redistribute`,type:`boolean`,default:`false`,id:`param-redistribute`,children:_jsx(_components.p,{children:`Copy the build to the region’s streaming servers again even when it is already the live, approved build.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`buildId`,type:`string`,id:`param-build-id-1`,children:`The build now being distributed.`}),`\n`,_jsxs(ResponseField,{name:`changed`,type:`boolean`,id:`param-changed`,children:[_jsx(_components.code,{children:`false`}),` when the build was already live and the project already on.`]}),`\n`,_jsxs(ResponseField,{name:`queued`,type:`boolean`,id:`param-queued`,children:[_jsx(_components.code,{children:`true`}),`: distribution was queued. `,_jsx(_components.code,{children:`false`}),`: the build is already live and nothing was copied.`]}),`\n`,_jsx(ResponseField,{name:`previousBuildStatus`,type:`string`,id:`param-previous-build-status`,children:`The build’s status before this call.`}),`\n`,_jsxs(ResponseField,{name:`enabled`,type:`boolean`,id:`param-enabled`,children:[`Always `,_jsx(_components.code,{children:`true`}),`: setting a build active switches the project on.`]}),`\n`,_jsx(ResponseField,{name:`note`,type:`string`,id:`param-note`,children:`What to do next.`}),`\n`,`\n`,`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_FAILED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`buildId`}),` missing or not a 24-character id.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`API_KEY_SCOPE`})}),_jsxs(_components.td,{children:[`The key was issued without `,_jsx(_components.code,{children:`control`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`The project belongs to another account, or the team role cannot edit projects.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_FOUND`})}),_jsx(_components.td,{children:`No such project, or no such build on it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CONFLICT`})}),_jsx(_components.td,{children:`The build has not been processed yet, or failed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMITED`})}),_jsx(_components.td,{children:`More than 30 control calls in a minute.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`a-full-release-from-ci`,children:`A full release from CI`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Upload`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/resources/api-reference/upload-file-api`,children:`Upload File`}),` with `,_jsx(_components.code,{children:`autoRelease: false`}),`; keep the `,_jsx(_components.code,{children:`uploadId`}),`.`]})}),_jsx(Step,{title:`Wait for processing`,children:_jsxs(_components.p,{children:[`Poll `,_jsx(_components.a,{href:`/resources/api-reference/build-status`,children:`Build Status`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`ready_for_activation`}),`, or listen for the `,_jsx(_components.code,{children:`build.ready`}),` webhook (`,_jsx(_components.code,{children:`build.saving`}),` fires earlier, while the build is still being processed — activating then is refused with `,_jsx(_components.code,{children:`409`}),`).`]})}),_jsx(Step,{title:`Activate`,children:_jsxs(_components.p,{children:[`Call this endpoint with the `,_jsx(_components.code,{children:`uploadId`}),`.`]})}),_jsx(Step,{title:`Wait for distribution`,children:_jsxs(_components.p,{children:[`Poll Build Status until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`live`}),`. Optionally `,_jsx(_components.a,{href:`/resources/api-reference/end-sessions`,children:`End Sessions`}),` so current viewers reconnect onto the new build.`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Set Active Build","description":"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.","icon":"star","api":"POST https://platform.streampixel.io/api/v1/projects/{projectId}/active-build","href":"/resources/api-reference/set-active-build"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,ParamField,RequestExample,ResponseExample,ResponseField,Step,Steps,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Choose which build the project serves. The build is marked `,_jsx(_components.code,{children:`Ready`}),`, the project is switched on, and distribution to the region’s streaming servers is queued. Viewers get the new build once it reaches `,_jsx(_components.code,{children:`Approved`}),`; poll `,_jsx(_components.a,{href:`/resources/api-reference/build-status`,children:`Build Status`}),` for that.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Scope: `,_jsx(_components.code,{children:`control`}),`. Team members need the Uploader role or above: deploying a build is a build job, not a project change. Limited to 30 control calls per minute per account.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Only a build the pipeline has finished processing can be set active: status `,_jsx(_components.code,{children:`Ready`}),`, `,_jsx(_components.code,{children:`Approved`}),`, `,_jsx(_components.code,{children:`Distribute`}),` or `,_jsx(_components.code,{children:`Distributing to Servers`}),`. A build still downloading or scanning is refused with `,_jsx(_components.code,{children:`409`}),`; a failed or rejected build needs a new upload.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Idempotent. Posting the build that is already live and approved changes nothing: the response has `,_jsx(_components.code,{children:`changed: false`}),` and `,_jsx(_components.code,{children:`queued: false`}),`, and the project is switched on if it was off. Send `,_jsx(_components.code,{children:`redistribute: true`}),` to copy that build to the region’s streaming servers again, for example after a server was rebuilt.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`projectId`,type:`string`,required:true,id:`param-project-id`,children:_jsx(_components.p,{children:`The project.`})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`An API key issued with the `,_jsx(_components.code,{children:`control`}),` scope.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request body`}),`\n`,_jsx(ParamField,{body:`buildId`,type:`string`,required:true,id:`param-build-id`,children:_jsxs(_components.p,{children:[`The build to activate: `,_jsx(_components.code,{children:`uploadId`}),` from Upload File, or `,_jsx(_components.code,{children:`id`}),` from `,_jsx(_components.a,{href:`/resources/api-reference/list-builds`,children:`List Builds`}),`.`]})}),`\n`,_jsx(ParamField,{body:`redistribute`,type:`boolean`,default:`false`,id:`param-redistribute`,children:_jsx(_components.p,{children:`Copy the build to the region’s streaming servers again even when it is already the live, approved build.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`buildId`,type:`string`,id:`param-build-id-1`,children:`The build now being distributed.`}),`\n`,_jsxs(ResponseField,{name:`changed`,type:`boolean`,id:`param-changed`,children:[_jsx(_components.code,{children:`false`}),` when the build was already live and the project already on.`]}),`\n`,_jsxs(ResponseField,{name:`queued`,type:`boolean`,id:`param-queued`,children:[_jsx(_components.code,{children:`true`}),`: distribution was queued. `,_jsx(_components.code,{children:`false`}),`: the build is already live and nothing was copied.`]}),`\n`,_jsx(ResponseField,{name:`previousBuildStatus`,type:`string`,id:`param-previous-build-status`,children:`The build’s status before this call.`}),`\n`,_jsxs(ResponseField,{name:`enabled`,type:`boolean`,id:`param-enabled`,children:[`Always `,_jsx(_components.code,{children:`true`}),`: setting a build active switches the project on.`]}),`\n`,_jsx(ResponseField,{name:`note`,type:`string`,id:`param-note`,children:`What to do next.`}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` https://platform.streampixel.io/api/v1/projects/664f1a2b3c4d5e6f7a8b9c0d/active-build`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`$STREAMPIXEL_API_KEY`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` '{\"buildId\": \"66a0b1c2d3e4f5a6b7c8d9e0\"}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`9`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` = `}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'https://platform.streampixel.io/api/v1/projects/664f1a2b3c4d5e6f7a8b9c0d/active-build'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`'x-api-key'`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:`STREAMPIXEL_API_KEY`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#4FC1FF`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`buildId:`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` '66a0b1c2d3e4f5a6b7c8d9e0'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` === `}),_jsx(_components.span,{style:{color:`#B5CEA8`,\"--shiki-dark\":`#B5CEA8`},children:`409`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`'not processed yet:'`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`, (`}),_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`()).`}),_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`8`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#C586C0`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:` os, requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`r = requests.post(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` \"https://platform.streampixel.io/api/v1/projects/664f1a2b3c4d5e6f7a8b9c0d/active-build\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`={`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: os.environ[`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"STREAMPIXEL_API_KEY\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`]},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`={`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"buildId\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"66a0b1c2d3e4f5a6b7c8d9e0\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#DCDCAA`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`(r.status_code, r.json())`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 OK`,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"projectId\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"664f1a2b3c4d5e6f7a8b9c0d\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Showroom\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"region\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Europe\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"buildId\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"66a0b1c2d3e4f5a6b7c8d9e0\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"changed\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"queued\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"previousBuildStatus\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Ready\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"note\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Distribution to the region's streaming servers is queued; poll GET /projects/{id}/files/{fileId}/status until it is Approved.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`200 OK (already the live build)`,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"projectId\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"664f1a2b3c4d5e6f7a8b9c0d\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Showroom\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"region\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Europe\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"buildId\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"665a2b3c4d5e6f7a8b9c0e1f\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"changed\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"queued\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#569CD6`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"previousBuildStatus\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Approved\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"note\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"This build is already active and approved; nothing was changed. Send {`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`redistribute`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`: true} to copy it to the region's streaming servers again.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`409 Conflict`,numberOfLines:`5`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes dark-plus dark-plus`,style:{backgroundColor:`#0B0C0E`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"CONFLICT\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Build is `}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`Extracting \u0026 Scanning`}),_jsx(_components.span,{style:{color:`#D7BA7D`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:` and cannot be set active yet. It must have been processed (Ready or Approved); failed or rejected builds need a new upload.\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#9CDCFE`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CE9178`,\"--shiki-dark\":`#CE9178`},children:`\"Extracting \u0026 Scanning\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#D4D4D4`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_FAILED`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`buildId`}),` missing or not a 24-character id.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`API_KEY_SCOPE`})}),_jsxs(_components.td,{children:[`The key was issued without `,_jsx(_components.code,{children:`control`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsx(_components.td,{children:`—`}),_jsx(_components.td,{children:`The project belongs to another account, or the team role cannot edit projects.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_FOUND`})}),_jsx(_components.td,{children:`No such project, or no such build on it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`409`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CONFLICT`})}),_jsx(_components.td,{children:`The build has not been processed yet, or failed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMITED`})}),_jsx(_components.td,{children:`More than 30 control calls in a minute.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`a-full-release-from-ci`,children:`A full release from CI`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Upload`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/resources/api-reference/upload-file-api`,children:`Upload File`}),` with `,_jsx(_components.code,{children:`autoRelease: false`}),`; keep the `,_jsx(_components.code,{children:`uploadId`}),`.`]})}),_jsx(Step,{title:`Wait for processing`,children:_jsxs(_components.p,{children:[`Poll `,_jsx(_components.a,{href:`/resources/api-reference/build-status`,children:`Build Status`}),` until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`ready_for_activation`}),`, or listen for the `,_jsx(_components.code,{children:`build.ready`}),` webhook (`,_jsx(_components.code,{children:`build.saving`}),` fires earlier, while the build is still being processed — activating then is refused with `,_jsx(_components.code,{children:`409`}),`).`]})}),_jsx(Step,{title:`Activate`,children:_jsxs(_components.p,{children:[`Call this endpoint with the `,_jsx(_components.code,{children:`uploadId`}),`.`]})}),_jsx(Step,{title:`Wait for distribution`,children:_jsxs(_components.p,{children:[`Poll Build Status until `,_jsx(_components.code,{children:`state`}),` is `,_jsx(_components.code,{children:`live`}),`. Optionally `,_jsx(_components.a,{href:`/resources/api-reference/end-sessions`,children:`End Sessions`}),` so current viewers reconnect onto the new build.`]})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Set Active Build","description":"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.","icon":"star","api":"POST https://platform.streampixel.io/api/v1/projects/{projectId}/active-build","href":"/resources/api-reference/set-active-build"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Headers","slug":"headers","depth":2,"children":[]},{"title":"Request body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]},{"title":"A full release from CI","slug":"a-full-release-from-ci","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> https://platform.streampixel.io/api/v1/projects/664f1a2b3c4d5e6f7a8b9c0d/active-build\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"x-api-key: \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">$STREAMPIXEL_API_KEY\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> '{\"buildId\": \"66a0b1c2d3e4f5a6b7c8d9e0\"}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#4FC1FF;--shiki-dark:#4FC1FF\"> res\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> = \u003c/span>\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> 'https://platform.streampixel.io/api/v1/projects/664f1a2b3c4d5e6f7a8b9c0d/active-build'\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">'x-api-key'\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> process\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">env\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#4FC1FF;--shiki-dark:#4FC1FF\">STREAMPIXEL_API_KEY\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">'Content-Type'\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> 'application/json'\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#4FC1FF;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">({ \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">buildId:\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> '66a0b1c2d3e4f5a6b7c8d9e0'\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">if\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">res\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">status\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> === \u003c/span>\u003cspan style=\"color:#B5CEA8;--shiki-dark:#B5CEA8\">409\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">'not processed yet:'\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">, (\u003c/span>\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">await\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> res\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">()).\u003c/span>\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\">message\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#C586C0;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\"> os, requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">r = requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> \"https://platform.streampixel.io/api/v1/projects/664f1a2b3c4d5e6f7a8b9c0d/active-build\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">={\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"x-api-key\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: os.environ[\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"STREAMPIXEL_API_KEY\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">]},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">={\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"buildId\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"66a0b1c2d3e4f5a6b7c8d9e0\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#DCDCAA;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">(r.status_code, r.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200 OK","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"projectId\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"664f1a2b3c4d5e6f7a8b9c0d\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Showroom\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"region\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Europe\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"enabled\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"buildId\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"66a0b1c2d3e4f5a6b7c8d9e0\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"changed\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"queued\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"previousBuildStatus\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Ready\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"note\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Distribution to the region's streaming servers is queued; poll GET /projects/{id}/files/{fileId}/status until it is Approved.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"200 OK (already the live build)","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"projectId\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"664f1a2b3c4d5e6f7a8b9c0d\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Showroom\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"region\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Europe\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"enabled\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"buildId\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"665a2b3c4d5e6f7a8b9c0e1f\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"changed\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"queued\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#569CD6;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"previousBuildStatus\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Approved\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"note\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"This build is already active and approved; nothing was changed. Send {\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">redistribute\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">: true} to copy it to the region's streaming servers again.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"409 Conflict","html":"\u003cpre class=\"shiki shiki-themes dark-plus dark-plus\" style=\"background-color:#0B0C0E;--shiki-dark-bg:#0B0C0E;color:#D4D4D4;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"CONFLICT\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Build is \u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">Extracting \u0026#x26; Scanning\u003c/span>\u003cspan style=\"color:#D7BA7D;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\"> and cannot be set active yet. It must have been processed (Ready or Approved); failed or rejected builds need a new upload.\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#9CDCFE;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#CE9178;--shiki-dark:#CE9178\">\"Extracting \u0026#x26; Scanning\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#D4D4D4;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Set Active Build","path":"/api/v1/projects/{projectId}/active-build","servers":[{"url":"https://platform.streampixel.io"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"x-api-key":{"schema":[{"type":"string","description":"An API key issued with the `control` scope.","required":true}]}},"cookie":{},"path":{"projectId":{"schema":[{"type":"string","description":"The project.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"buildId":[{"type":"string","description":"The build to activate: `uploadId` from Upload File, or `id` from List Builds .","required":true}],"redistribute":[{"type":"boolean","description":"Copy the build to the region’s streaming servers again even when it is already the live, approved build."}]}}],"examples":{"example":{"value":{"buildId":"\u003cstring>","redistribute":true}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"buildId":[{"type":"string","description":"The build now being distributed."}],"changed":[{"type":"boolean","description":"`false` when the build was already live and the project already on."}],"queued":[{"type":"boolean","description":"`true` : distribution was queued. `false` : the build is already live and nothing was copied."}],"previousBuildStatus":[{"type":"string","description":"The build’s status before this call."}],"enabled":[{"type":"boolean","description":"Always `true` : setting a build active switches the project on."}],"note":[{"type":"string","description":"What to do next."}]}}],"examples":{"example":{"value":{"buildId":"\u003cstring>","changed":true,"queued":true,"previousBuildStatus":"\u003cstring>","enabled":true,"note":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"streampixel","siteName":"Streampixel","title":"Set Active Build - Streampixel","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-09T06:33:17.086Z","originalFileLocation":"resources/api-reference/set-active-build.md"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Streampixel\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set Active Build - Streampixel\">\u003cmeta data-mint-head property=\"og:description\" content=\"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Streampixel\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.streampixel.io/resources/api-reference/set-active-build\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://streampixel.mintlify.site/_mintlify/api/og/v2?division=Project+control\u0026amp;title=Set+Active+Build\u0026amp;description=Make+a+processed+build+the+one+viewers+get%3A+the+API+equivalent+of+Set+Active+in+the+dashboard.\u0026amp;theme=2bcbe340684957be40b450f3\u0026amp;signature=6821c3ce9c53dc9b128eab8461b0e11edc1b5ac8a0985dc67471e4bfb68bab9a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Set Active Build - Streampixel\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://streampixel.mintlify.site/_mintlify/api/og/v2?division=Project+control\u0026amp;title=Set+Active+Build\u0026amp;description=Make+a+processed+build+the+one+viewers+get%3A+the+API+equivalent+of+Set+Active+in+the+dashboard.\u0026amp;theme=2bcbe340684957be40b450f3\u0026amp;signature=6821c3ce9c53dc9b128eab8461b0e11edc1b5ac8a0985dc67471e4bfb68bab9a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/streampixel/ihpD92PgybcJo_xa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Streampixel\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00B8E6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.streampixel.io/resources/api-reference/set-active-build\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/resources/api-reference/set-active-build.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.streampixel.io/#organization\",\"name\":\"Streampixel\",\"url\":\"https://docs.streampixel.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/streampixel/3A9zLaQxhTCIH06h/logo/logo.png?fit=max\u0026auto=format\u0026n=3A9zLaQxhTCIH06h\u0026q=85\u0026s=97d4efed69a7ba6432871781617e39fe\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.streampixel.io#website\",\"name\":\"Streampixel\",\"url\":\"https://docs.streampixel.io\",\"publisher\":{\"@id\":\"https://docs.streampixel.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.streampixel.io/resources/api-reference/set-active-build#webpage\",\"url\":\"https://docs.streampixel.io/resources/api-reference/set-active-build\",\"name\":\"Set Active Build\",\"description\":\"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.\",\"dateModified\":\"2026-10-09T06:33:17.086Z\",\"isPartOf\":{\"@id\":\"https://docs.streampixel.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.streampixel.io/resources/api-reference/set-active-build#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.streampixel.io/resources/api-reference/set-active-build#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Project control\",\"item\":\"https://docs.streampixel.io/resources/api-reference/enable-project\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set Active Build\",\"item\":\"https://docs.streampixel.io/resources/api-reference/set-active-build\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.streampixel.io/resources/api-reference/set-active-build#apireference\",\"headline\":\"Set Active Build\",\"name\":\"Set Active Build\",\"description\":\"Make a processed build the one viewers get: the API equivalent of Set Active in the dashboard.\",\"url\":\"https://docs.streampixel.io/resources/api-reference/set-active-build\",\"mainEntityOfPage\":{\"@id\":\"https://docs.streampixel.io/resources/api-reference/set-active-build#webpage\"},\"dateModified\":\"2026-10-09T06:33:17.086Z\",\"publisher\":{\"@id\":\"https://docs.streampixel.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.streampixel.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Streampixel\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Streampixel","nav":{"global":{},"tabs":[{"tab":"Get Started","icon":"rocket","pages":[{"title":"Get Started","href":""}]},{"tab":"Dashboard","icon":"gauge","pages":[{"title":"Dashboard","href":"/resources/dashboard/billing"}]},{"tab":"Iframe","icon":"browser","pages":[{"title":"Iframe","href":"/resources/iframe-integration/overview"}]},{"tab":"Web SDK","icon":"code","pages":[{"title":"Web SDK","href":"/resources/web-sdk/getting-started/overview"}]},{"tab":"REST API","icon":"webhook","groups":[{"group":"Getting started","pages":[{"title":"Overview","icon":"webhook","href":"/resources/api-reference/overview"},{"title":"API authentication","icon":"key","href":"/resources/api-reference/api-authentication"},{"title":"Finding your user and project IDs","icon":"id-card","href":"/resources/api-reference/finding-your-user-and-project-ids"},{"title":"Rate limits \u0026 error codes","icon":"gauge-high","href":"/resources/api-reference/rate-limits-and-errors"}]},{"group":"Projects","pages":[{"title":"List Projects","icon":"list","api":"GET https://platform.streampixel.io/api/v1/projects/projects-status","href":"/resources/api-reference/list-projects"},{"title":"Get Project","icon":"folder-open","api":"GET https://platform.streampixel.io/api/v1/projects/{projectId}","href":"/resources/api-reference/get-project"},{"title":"Project Live Stats","icon":"signal","api":"GET https://platform.streampixel.io/api/v1/projects/{projectId}/live-stats","href":"/resources/api-reference/project-live-stats"},{"title":"Project User Stats","icon":"users","api":"GET https://platform.streampixel.io/api/v1/projects/{projectId}/user-stats","href":"/resources/api-reference/project-user-stats"}]},{"group":"Builds","pages":[{"title":"Upload File API","icon":"upload","api":"POST https://platform.streampixel.io/api/v1/projects/upload-file","href":"/resources/api-reference/upload-file-api"},{"title":"Distribute File API","icon":"paper-plane","api":"POST https://platform.streampixel.io/api/v1/projects/distribute-file","href":"/resources/api-reference/distribute-file-api"},{"title":"List Builds","icon":"layer-group","api":"GET https://platform.streampixel.io/api/v1/projects/{projectId}/files","href":"/resources/api-reference/list-builds"},{"title":"Build Status","icon":"magnifying-glass","api":"GET https://platform.streampixel.io/api/v1/projects/{projectId}/files/{buildId}/status","href":"/resources/api-reference/build-status"}]},{"group":"Project control","pages":[{"title":"Enable Project","icon":"toggle-on","api":"POST https://platform.streampixel.io/api/v1/projects/{projectId}/enable","href":"/resources/api-reference/enable-project"},{"title":"Disable Project","icon":"toggle-off","api":"POST https://platform.streampixel.io/api/v1/projects/{projectId}/disable","href":"/resources/api-reference/disable-project"},{"title":"End Sessions","description":"End every live and queued session of a project while keeping it on.","icon":"user-xmark","api":"POST https://platform.streampixel.io/api/v1/projects/{projectId}/sessions/end","href":"/resources/api-reference/end-sessions"},{"title":"Set Active Build","icon":"star","api":"POST https://platform.streampixel.io/api/v1/projects/{projectId}/active-build","href":"/resources/api-reference/set-active-build"},{"title":"Update Project Settings","description":"Change a project's streaming and player settings from an allow-list. Anything else is refused by name.","icon":"sliders","api":"PATCH https://platform.streampixel.io/api/v1/projects/{projectId}/settings","href":"/resources/api-reference/update-project-settings"}]},{"group":"Sessions \u0026 analytics","pages":[{"title":"List Sessions","icon":"list-ul","api":"GET https://platform.streampixel.io/api/v1/analytics/projects/{projectId}/sessions","href":"/resources/api-reference/list-sessions"},{"title":"Session Detail","icon":"timeline","api":"GET https://platform.streampixel.io/api/v1/analytics/sessions/{sessionId}","href":"/resources/api-reference/session-detail"},{"title":"Session Telemetry","icon":"wave-square","api":"GET https://platform.streampixel.io/api/v1/analytics/frontend-streaming-logs","href":"/resources/api-reference/session-telemetry"},{"title":"Session Logs","icon":"file-lines","api":"GET https://platform.streampixel.io/api/v1/analytics/log-files/session/{sessionId}","href":"/resources/api-reference/session-logs"},{"title":"Download Log","icon":"download","api":"GET https://platform.streampixel.io/api/v1/analytics/log-files/{logFileId}/download","href":"/resources/api-reference/download-log"},{"title":"Disconnect Codes","icon":"plug-circle-xmark","api":"GET https://platform.streampixel.io/api/v1/analytics/projects/{projectId}/disconnect-codes","href":"/resources/api-reference/disconnect-codes-api"},{"title":"Queue Analytics","icon":"hourglass-half","api":"GET https://platform.streampixel.io/api/v1/analytics/projects/{projectId}/analytics/queue","href":"/resources/api-reference/queue-analytics"},{"title":"Audience Breakdown","icon":"earth-europe","api":"GET https://platform.streampixel.io/api/v1/analytics/projects/{projectId}/analytics/breakdown","href":"/resources/api-reference/audience-breakdown"}]},{"group":"Webhooks","pages":[{"title":"Overview","icon":"bell","href":"/resources/api-reference/webhooks"},{"title":"Webhook event reference","icon":"book","href":"/resources/api-reference/webhook-events"}]},{"group":"Integrations","pages":[{"title":"AI assistants (MCP)","icon":"robot","href":"/resources/api-reference/mcp-assistants"}]}]},{"tab":"Guides \u0026 Reference","icon":"book","pages":[{"title":"Guides \u0026 Reference","href":"/resources/recipes/overview"}]}]},"basePath":"","title":"Set Active Build - Streampixel","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js"]}