> ## 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.

# Open the publication's upload

> With source.uploadId, returns sourceId and uploadRequired false; call source-complete to queue durable copy and inspection.



## OpenAPI

````yaml scripts/reference/sources/openapi/management.json POST /v1/management/games/{gameId}/build-publications/{publicationId}:source-upload
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}:source-upload:
    parameters:
      - $ref: '#/components/parameters/GameID'
      - name: publicationId
        in: path
        required: true
        schema:
          type: string
    post:
      tags:
        - Games
      summary: Open the publication's upload
      description: >-
        With source.uploadId, returns sourceId and uploadRequired false; call
        source-complete to queue durable copy and inspection. Requires
        builds.write while the publication is uploading. A platform-upload
        source receives one conditional PUT grant for its whole ZIP. An exported
        game receives its fixed part plan and an open storage session: request
        part grants from :signParts and send every part straight to storage.
        Repeating the call returns the same plan and session; after an
        upload_expired completion it opens a new session.
      operationId: beginBuildPublicationUpload
      responses:
        '200':
          description: The source's upload grant or the exported game's part plan
          content:
            application/json:
              schema:
                type: object
                required:
                  - sourceId
                oneOf:
                  - required:
                      - upload
                  - required:
                      - uploadRequired
                properties:
                  sourceId:
                    type: string
                  uploadRequired:
                    type: boolean
                    const: false
                  upload:
                    oneOf:
                      - $ref: '#/components/schemas/ClientPackageUploadPlan'
                      - $ref: '#/components/schemas/SourceUploadGrant'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            upload_not_open: the exported game is already sealed or its
            publication closed
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  parameters:
    GameID:
      name: gameId
      in: path
      required: true
      schema:
        type: string
        pattern: ^game_[A-Za-z0-9_-]{8,123}$
  schemas:
    ClientPackageUploadPlan:
      type: object
      required:
        - partSizeBytes
        - partCount
      description: >-
        Every part except the last is exactly partSizeBytes long; the last holds
        the remainder.
      properties:
        partSizeBytes:
          type: integer
          const: 67108864
        partCount:
          type: integer
          minimum: 1
          maximum: 640
    SourceUploadGrant:
      type: object
      required:
        - method
        - url
        - headers
        - expiresAt
      description: One conditional PUT of a whole source ZIP.
      properties:
        method:
          type: string
          const: PUT
        url:
          type: string
          format: uri
        headers:
          type: object
          additionalProperties:
            type: string
        expiresAt:
          type: string
          format: date-time
    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:
    NotFound:
      description: Missing or inaccessible resource
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: Required dependency unavailable; the error is retryable
      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.