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

# Add Gallery Photo

> Adds a single photo to an artist's gallery



## OpenAPI

````yaml POST /gallery/add-photo
openapi: 3.1.0
info:
  title: Tatu API
  description: API documentation for Tatu's booking and artist management system
  version: 1.0.0
servers:
  - url: http://localhost:3000/api
    description: Development server
security: []
paths:
  /gallery/add-photo:
    post:
      summary: Add Gallery Photo
      description: Adds a single photo to an artist's gallery
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddPhotoRequest'
      responses:
        '201':
          description: Photo added successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddPhotoResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - not an artist
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AddPhotoRequest:
      type: object
      required:
        - source
        - url
        - fileId
      properties:
        source:
          type: string
          enum:
            - instagram
            - upload
            - url
          description: Source of the photo
        url:
          type: string
          description: URL of the photo
        thumbnailUrl:
          type: string
          description: Thumbnail URL
        fileId:
          type: string
          description: Unique file identifier
        tags:
          type: array
          items:
            type: string
          description: Photo tags
        sourceData:
          type: object
          description: Additional source-specific metadata
    AddPhotoResponse:
      type: object
      properties:
        success:
          type: boolean
        photo:
          type: object
          description: The added photo
    Error:
      type: object
      required:
        - message
      properties:
        message:
          type: string

````