1. Streak
Game Loom
  • Game Loom
    • 👋 Welcome to Game Loom
  • Getting started
    • Introduction
    • 👤 Authentication
  • User Registration
    • Introduction
    • Get Countries
      GET
    • Get Cities
      GET
    • Single user registration
      POST
    • Bulk Register Users
      POST
  • Notifications
    • Overview
    • Receiving Event Notifications via Webhooks
    • Get All notifications for specific user
      GET
  • Rewards
    • Overview
    • Integrate with you reward system
    • Points
      • Record user point event
      • Get user points
      • Get Specific user point
    • Levels
      • Record user level event
      • Get user levels
      • Get Specific user level
    • Badges
      • Award badge to user
      • Get user badges
      • Get Specific user badge
  • Challenges (Gamification elements)
    • Introduction
    • Leaderboard
      • Get available leaderboards for user
      • Submit score to a leaderboard
      • Get user's leaderboard participation history
      • Get leaderboard details
      • Get leaderboard ranking
      • Get user's record for a leaderboard
      • Get user's entry history for a leaderboard
    • Survey
      • Overview
      • Get available surveys for user
      • Start a new survey participation
      • Get detailed user participation
      • Get user's survey participation history
      • Abandon survey participation
      • Save individual answer to survey question
      • Submit completed survey
      • Submit Survey with answers (One-Step Submission)
    • Quiz
      • Get available quizzes for user
      • Submit complete quiz answers
      • Get comprehensive user quiz history
      • Get comprehensive quiz attempt details
    • Open Challenge
      • Overview
      • Get available open challenges for user
      • Complete an open challenge
      • Get user's open challenge participation history
      • Get user open challenge by ID
    • Streak
      • Create a streak by external Id
        POST
      • Get a streak by ExternalId
        GET
      • Update own streak
        PUT
      • Enable or disable own streak
        PUT
      • Get User Streak Progress.
        GET
      • Post Streak Activity
        POST
    • Schemas
      • Survey Schame
  • MarketPlace
    • Overview
    • Flutter SDK
    • Marketplace
      • Browse available gifts for user
      • Get gift details
      • Redeem a gift
      • Get user's redemption history
    • Schemas
      • ProblemDetails
      • Pagination
  1. Streak

Update own streak

PUT
api/v1/user/{userkey}/streaks/manage/{streakId}
Allows a user to update a streak they created. Ownership is enforced — only the original creator (matched by userkey) can update.

Request

Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

🟠400
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api-stg.98s.studio/api/v1/user//streaks/manage/' \
--header 'x-api-key: {{api-key}}' \
--header 'Content-Type: application/json' \
--data '{
  "name": "Morning Ride Streak (Extended)",
  "description": "Complete a ride every day. Now extended through the summer.",
  "localizedContent": {
    "ar": {
      "name": "سلسلة ركوب الصباح (موسعة)",
      "description": "أكمل ركوبًا كل يوم. تم تمديدها حتى الصيف."
    }
  },
  "startDate": "2026-06-10T00:00:00Z",
  "endDate": "2026-08-10T00:00:00Z",
  "occurrence": "DAILY",
  "scoreGoal": 150,
  "externalId": "stable-streak-2026-06-001",
  "targetedProperties": {
    "gender": 2,
    "minAge": 18,
    "maxAge": 50,
    "country": ["SA", "AE"],
    "city": ["SA-riyadh", "AE-dubai", "SA-jeddah"],
    "segment": ["premium"]
  },
  "hasReward": true,
  "rewards": [
    {
      "rewardType": "POINTS",
      "rewardId": "reward-points-750",
      "amount": 750
    }
  ]
}'
Response Response Example
200 - Success
{
  "id": "3f2504e0-4f89-41d3-9a0c-0305e82c3301",
  "name": "Morning Ride Streak (Extended)",
  "description": "Complete a ride every day. Now extended through the summer.",
  "supportedLanguages": ["ar"],
  "localizedContent": {
    "ar": {
      "name": "سلسلة ركوب الصباح (موسعة)",
      "description": "أكمل ركوبًا كل يوم. تم تمديدها حتى الصيف."
    }
  },
  "startDate": "2026-06-10T00:00:00Z",
  "endDate": "2026-08-10T00:00:00Z",
  "occurrence": "DAILY",
  "status": "ACTIVE",
  "scoreGoal": 150,
  "isPublic": false,
  "targetedProperties": {
    "gender": 2,
    "minAge": 18,
    "maxAge": 50,
    "country": ["SA", "AE"],
    "city": ["SA-riyadh", "AE-dubai", "SA-jeddah"],
    "segment": ["premium"]
  },
  "externalId": "stable-streak-2026-06-001",
  "hasReward": true,
  "rewards": [
    {
      "rewardType": "POINTS",
      "rewardId": "reward-points-750",
      "amount": 750
    }
  ]
}
Modified at 2026-06-06 19:52:28
Previous
Get a streak by ExternalId
Next
Enable or disable own streak
Built with