> ## Documentation Index
> Fetch the complete documentation index at: https://docs.summerengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Approve the preview Build

> Requires builds.write and an approved Game.



## OpenAPI

````yaml scripts/reference/sources/openapi/management.json POST /v1/management/games/{gameId}/build-publications/{publicationId}:publish
openapi: 3.1.0
info:
  title: Summer Creator Management API
  version: summer.management.creator/v1
  description: >-
    Create and manage your Summer Games store games: store page drafts,
    revisions, preview links, media, builds and releases, and the owner approval
    that publishes them.
servers:
  - url: https://api.summer.games
security:
  - developerBearer: []
tags:
  - name: Games
  - name: Items
  - name: Media
paths:
  /v1/management/games/{gameId}/build-publications/{publicationId}:publish:
    post:
      tags:
        - Games
      summary: Approve the preview Build
      description: >-
        Requires builds.write and an approved Game. Promotes exactly the
        recorded preview Build; nothing is rebuilt. A Build from an exported
        game becomes ready in the same request.
      operationId: publishBuildPublication
      parameters:
        - $ref: '#/components/parameters/GameID'
        - name: publicationId
          in: path
          required: true
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            minLength: 1
      responses:
        '202':
          description: Approval recorded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildPublicationAccepted'
        '409':
          $ref: '#/components/responses/Conflict'
components:
  parameters:
    GameID:
      name: gameId
      in: path
      required: true
      schema:
        type: string
        pattern: ^game_[A-Za-z0-9_-]{8,123}$
  schemas:
    BuildPublicationAccepted:
      type: object
      required:
        - operationId
        - publicationId
        - buildId
        - sourceId
        - state
      properties:
        operationId:
          type: string
        publicationId:
          type: string
        buildId:
          type: string
          description: Preallocated; readable once the publication is preview_ready.
        sourceId:
          type: string
        state:
          type: string
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - requestId
            - retryable
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
            retryable:
              type: boolean
  responses:
    Conflict:
      description: Lifecycle or idempotency conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    developerBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your Summer account token. An agent gets it by signing in with OAuth:
        `summer login --store` in the Summer CLI, or the Summer connector in an
        AI app. Agent tokens can call only the operations on these pages.
        Publishing needs an approval from the game's owner first.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.