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

# Submit game revision

> A person's own submit sends the revision to review; it is the owner's approval.



## OpenAPI

````yaml scripts/reference/sources/openapi/management.json POST /v1/management/games/{gameId}/revisions/{revisionId}:submit
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}/revisions/{revisionId}:submit:
    parameters:
      - $ref: '#/components/parameters/GameID'
      - $ref: '#/components/parameters/RevisionID'
    post:
      tags:
        - Games
      description: >-
        A person's own submit sends the revision to review; it is the owner's
        approval. An agent credential (hosted Summer MCP) never reaches review:
        its submit records an owner approval for exactly this revision at this
        ETag and answers 202 with {ownerApproval}; the revision stays a draft
        until the owner approves it (owner-approvals :approve).
      operationId: submitGameRevision
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
        - $ref: '#/components/parameters/IfMatch'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OwnerApprovalRequestBody'
      responses:
        '202':
          description: >-
            Review operation accepted (a person), or an owner approval recorded
            (an agent credential)
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/Operation'
                  - $ref: '#/components/schemas/OwnerApprovalRequested'
        '409':
          $ref: '#/components/responses/Conflict'
        '412':
          $ref: '#/components/responses/PreconditionFailed'
        '422':
          $ref: '#/components/responses/ValidationFailed'
components:
  parameters:
    GameID:
      name: gameId
      in: path
      required: true
      schema:
        type: string
        pattern: ^game_[A-Za-z0-9_-]{8,123}$
    RevisionID:
      name: revisionId
      in: path
      required: true
      schema:
        type: string
        pattern: ^(grev|irev)_[A-Za-z0-9_-]{8,123}$
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 128
    IfMatch:
      name: If-Match
      in: header
      required: true
      schema:
        type: string
        minLength: 3
        maxLength: 160
  schemas:
    OwnerApprovalRequestBody:
      type: object
      additionalProperties: false
      description: >-
        What an agent credential proposes with its submit. Ignored for a
        person's own submit.
      properties:
        buildPublicationId:
          type: string
          description: A build publication of this Game the owner approves with the page.
        price:
          description: >-
            Omitted keeps the price; null proposes the Game free; an object
            proposes that USD price.
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ProposedPrice'
        note:
          type: string
          maxLength: 500
    Operation:
      type: object
      required:
        - operationId
        - status
      properties:
        operationId:
          type: string
        status:
          type: string
          enum:
            - pending
            - running
            - succeeded
            - failed
    OwnerApprovalRequested:
      type: object
      required:
        - ownerApproval
      properties:
        ownerApproval:
          $ref: '#/components/schemas/OwnerApproval'
    ProposedPrice:
      type: object
      additionalProperties: false
      required:
        - currency
        - amountMinor
      properties:
        currency:
          type: string
          const: USD
        amountMinor:
          type: integer
          minimum: 50
          maximum: 100000
    OwnerApproval:
      type: object
      additionalProperties: false
      required:
        - approvalId
        - gameId
        - revisionId
        - revisionEtag
        - priceChange
        - state
        - requestedBy
        - agentClientId
        - createdAt
      properties:
        approvalId:
          type: string
          pattern: ^goa_[0-9A-Za-z]{26}$
        gameId:
          type: string
        revisionId:
          type: string
        revisionEtag:
          type: integer
          minimum: 0
          description: >-
            The revision's ETag number when the agent asked; approval submits
            exactly that version.
        buildPublicationId:
          type: string
        priceChange:
          type: string
          enum:
            - keep
            - set
            - free
        price:
          $ref: '#/components/schemas/ProposedPrice'
        note:
          type: string
        state:
          type: string
          enum:
            - AWAITING_OWNER_APPROVAL
            - APPROVED
            - CANCELLED
            - STALE
        requestedBy:
          type: string
        agentClientId:
          type: string
          description: OAuth client of the agent credential that asked.
        createdAt:
          type: string
          format: date-time
        decidedAt:
          type: string
          format: date-time
        decidedBy:
          type: string
        submissionOperationId:
          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'
    PreconditionFailed:
      description: Stale ETag
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ValidationFailed:
      description: Bounded validation findings
      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.