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

# Upload or update a seating chart image for a hall

> Uploads or replaces the seating chart image for a specific hall.

The request body must be of type `multipart/form-data` with a single file part named `seating_chart_image`.

**Constraints:**
- **File Size Limit:** 10 MB.
- **Allowed Formats:** JPEG, PNG, and WebP (`image/jpeg`, `image/png`, `image/webp`).




## OpenAPI

````yaml api-reference/openapi.json post /api/halls/{hall_id}/seating-chart
openapi: 3.0.0
info:
  title: Tandem IT API
  version: 1.0.0
  description: API for tandem it backend
servers:
  - url: https://tandem.hlofiys.xyz
    description: Production server
security: []
tags:
  - name: Documentation
    description: API documentation endpoint
paths:
  /api/halls/{hall_id}/seating-chart:
    parameters:
      - name: hall_id
        in: path
        required: true
        schema:
          type: integer
          format: int64
    post:
      tags:
        - 'Admin: Halls'
      summary: Upload or update a seating chart image for a hall
      description: >
        Uploads or replaces the seating chart image for a specific hall.


        The request body must be of type `multipart/form-data` with a single
        file part named `seating_chart_image`.


        **Constraints:**

        - **File Size Limit:** 10 MB.

        - **Allowed Formats:** JPEG, PNG, and WebP (`image/jpeg`, `image/png`,
        `image/webp`).
      operationId: uploadHallSeatingChart
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - seating_chart_image
              properties:
                seating_chart_image:
                  type: string
                  format: binary
                  description: The image file to upload.
      responses:
        '200':
          description: Image uploaded successfully. Returns the updated Hall object.
          content:
            application/json:
              schema:
                type: object
                properties:
                  seating_chart_url:
                    type: string
                    format: uri
        '400':
          description: >-
            Bad Request. The request is malformed. This can happen if the
            `multipart/form-data` is missing the required 'image' part, or if
            the uploaded file is not a valid image type.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '401':
          description: >-
            Unauthorized. Authentication credentials were not provided or are
            invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Forbidden. The authenticated user does not have permission to
            perform this action.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not Found. The hall with the specified `hall_id` does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: >-
            Payload Too Large. The uploaded image file exceeds the server's size
            limit (10MB).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: >-
            Unsupported Media Type. The uploaded file is not in an allowed
            format (jpeg, png, webp).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: >-
            Internal Server Error. An unexpected error occurred on the server,
            e.g., failed to upload the file to the S3 storage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    ValidationError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          example: Validation failed
        errors:
          type: object
          description: A map of field names to their respective error messages.
          additionalProperties:
            type: string
          example:
            name: The name field is required.
            price: The price must be a valid number.
            hall_id: A valid hall_id is required.
    Error:
      type: object
      required:
        - message
      properties:
        message:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````