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

# Update an adventure



## OpenAPI

````yaml /api-reference/openapi.json put /projects/{projectId}/adventures/{adventureId}
openapi: 3.0.0
info:
  title: EngageFabric API
  description: >-
    EngageFabric is a multi-tenant SaaS gamification framework. This API
    provides endpoints for managing players, tracking events, quests,
    adventures, leaderboards, lobbies, and real-time features.
  version: 1.0.0
  contact:
    name: EngageFabric Support
    url: https://engagefabric.com
    email: support@engagefabric.com
  license:
    name: Proprietary
    url: https://engagefabric.com/terms
servers:
  - url: https://api.engagefabric.com
    description: Production
  - url: http://localhost:3000
    description: Development
security: []
tags:
  - name: auth
    description: Authentication endpoints
  - name: tenants
    description: Tenant management
  - name: projects
    description: Project management
  - name: players
    description: Player management and game state
  - name: events
    description: Event ingestion and tracking
  - name: quests
    description: Quest management and progress
  - name: adventures
    description: Adventure/season management
  - name: leaderboards
    description: Leaderboard rankings
  - name: lobbies
    description: Multiplayer lobby management
  - name: chat
    description: Real-time chat
  - name: rules
    description: Rules engine configuration
paths:
  /projects/{projectId}/adventures/{adventureId}:
    put:
      tags:
        - Adventures
      summary: Update an adventure
      operationId: AdventureController_update
      parameters:
        - name: projectId
          required: true
          in: path
          schema:
            type: string
        - name: adventureId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAdventureDto'
      responses:
        '200':
          description: Adventure updated
      security:
        - bearer: []
components:
  schemas:
    UpdateAdventureDto:
      type: object
      properties:
        name:
          type: string
          description: Adventure name
        description:
          type: string
          description: Adventure description
        bannerUrl:
          type: string
          description: Banner image URL
        iconUrl:
          type: string
          description: Icon URL
        startDate:
          type: string
          description: Start date (ISO 8601)
        endDate:
          type: string
          description: End date (ISO 8601)
        quests:
          description: Quests in adventure
          type: array
          items:
            $ref: '#/components/schemas/AdventureQuestDto'
        rewards:
          description: Rewards on completion
          type: array
          items:
            $ref: '#/components/schemas/RewardDto'
        unlockConditions:
          description: Adventure unlock conditions
          allOf:
            - $ref: '#/components/schemas/UnlockConditionsDto'
        sortOrder:
          type: number
          description: Display order
        metadata:
          type: object
          description: Custom metadata
        status:
          type: string
          enum:
            - DRAFT
            - TESTING
            - PUBLISHED
            - ARCHIVED
          description: Adventure status
        isActive:
          type: boolean
          description: Whether adventure is active
    AdventureQuestDto:
      type: object
      properties:
        questId:
          type: string
          description: Quest ID to include in adventure
        sortOrder:
          type: number
          description: Display order in adventure
        unlockConditions:
          description: Unlock conditions
          allOf:
            - $ref: '#/components/schemas/UnlockConditionsDto'
        isRequired:
          type: boolean
          description: Is this quest required for adventure completion
        bonusRewards:
          description: Bonus rewards for completing in adventure
          type: array
          items:
            $ref: '#/components/schemas/RewardDto'
      required:
        - questId
    RewardDto:
      type: object
      properties:
        type:
          type: string
          enum:
            - xp
            - currency
            - badge
          description: Type of reward
        amount:
          type: number
          description: Amount for XP or currency rewards
        currencyCode:
          type: string
          description: Currency code for currency rewards
        badgeId:
          type: string
          description: Badge ID for badge rewards
        track:
          type: string
          description: XP track for XP rewards
      required:
        - type
    UnlockConditionsDto:
      type: object
      properties:
        requiredQuestIds:
          description: Required quest IDs to complete first
          type: array
          items:
            type: string
        minAdventurePoints:
          type: number
          description: Minimum adventure points needed
        minLevel:
          type: number
          description: Minimum player level required

````