journey

Create a micro-game

post/api/journey/template/micro-games

Request body

codestring required

Unique game code

titlestring required

Game title

categorystring required

Motivation category

total_duration_secondsinteger nullable

Estimated duration

dedup_keystring nullable

Dedup key; derived from category + group when omitted

display_orderinteger nullable

Order within category; appended last when omitted

enabledboolean

Whether the game is active

Response

Successful Response

idstring required

Game type identifier

titlestring required

Game title

subtitlestring nullable

Subtitle / intro quote

categorystring required

Motivation category

total_duration_secondsinteger nullable

Estimated duration

Example response

{
  "appointment_group": {
    "max": 5,
    "min": 1
  },
  "category": "paura_percorso_psicologico",
  "id": "paura_psi_1_5",
  "scoring_rules": [],
  "screens": [
    {
      "blocks": [
        {
          "style": "title",
          "text": "Inizia a sciogliere le tue paure.",
          "type": "text"
        }
      ],
      "duration_seconds": 5,
      "id": "paura_psi_1_5_s1",
      "transition": "tap",
      "type": "intro"
    }
  ],
  "subtitle": "Quando la terapia spaventa...",
  "title": "Il Nodo",
  "total_duration_seconds": 90
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.