Skip to main content
PUT
/
projects
/
{projectId}
/
adventures
/
{adventureId}
Update an adventure
curl --request PUT \
  --url https://api.engagefabric.com/projects/{projectId}/adventures/{adventureId} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "bannerUrl": "<string>",
  "iconUrl": "<string>",
  "startDate": "<string>",
  "endDate": "<string>",
  "quests": [
    {
      "questId": "<string>",
      "sortOrder": 123,
      "unlockConditions": {
        "requiredQuestIds": [
          "<string>"
        ],
        "minAdventurePoints": 123,
        "minLevel": 123
      },
      "isRequired": true,
      "bonusRewards": [
        {
          "type": "xp",
          "amount": 123,
          "currencyCode": "<string>",
          "badgeId": "<string>",
          "track": "<string>"
        }
      ]
    }
  ],
  "rewards": [
    {
      "type": "xp",
      "amount": 123,
      "currencyCode": "<string>",
      "badgeId": "<string>",
      "track": "<string>"
    }
  ],
  "unlockConditions": {
    "requiredQuestIds": [
      "<string>"
    ],
    "minAdventurePoints": 123,
    "minLevel": 123
  },
  "sortOrder": 123,
  "metadata": {},
  "status": "DRAFT",
  "isActive": true
}
'

Path Parameters

projectId
string
required
adventureId
string
required

Body

application/json
name
string

Adventure name

description
string

Adventure description

bannerUrl
string

Banner image URL

iconUrl
string

Icon URL

startDate
string

Start date (ISO 8601)

endDate
string

End date (ISO 8601)

quests
object[]

Quests in adventure

rewards
object[]

Rewards on completion

unlockConditions
object

Adventure unlock conditions

sortOrder
number

Display order

metadata
object

Custom metadata

status
enum<string>

Adventure status

Available options:
DRAFT,
TESTING,
PUBLISHED,
ARCHIVED
isActive
boolean

Whether adventure is active

Response

200

Adventure updated