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

# Begin media upload

> POST /v1/management/media-assets:begin-upload



## OpenAPI

````yaml scripts/reference/sources/openapi/management.json POST /v1/management/media-assets:begin-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/media-assets:begin-upload:
    post:
      tags:
        - Media
      operationId: beginMediaUpload
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BeginUploadRequest'
      responses:
        '201':
          $ref: '#/components/responses/Resource'
        '422':
          $ref: '#/components/responses/ValidationFailed'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 128
  schemas:
    BeginUploadRequest:
      type: object
      additionalProperties: false
      required:
        - gameId
        - kind
        - contentType
        - byteLength
        - sha256
        - originalFilename
      properties:
        gameId:
          type: string
        kind:
          type: string
          enum:
            - IMAGE
            - MODEL_3D
            - VIDEO
        contentType:
          type: string
          enum:
            - image/png
            - image/jpeg
            - image/webp
            - model/gltf-binary
            - model/gltf+json
            - video/mp4
            - video/webm
        byteLength:
          type: integer
          format: int64
          minimum: 1
          maximum: 536870912
        sha256:
          type: string
          pattern: ^[0-9a-f]{64}$
        originalFilename:
          type: string
          minLength: 1
          maxLength: 255
    Resource:
      type: object
      additionalProperties: true
    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:
    Resource:
      description: Resource view
      headers:
        ETag:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Resource'
    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.