UpdateChallengeTask
v1.0.0

This command event is fired when a challenge subscriber logs a tracker data

Properties

subscriptionId* :

Unique identifier of the subscriber

challengeType* :

type identifies the challenge the customer subscribed to

taskType* :

the task should be updated (foodLogged, waterLogged, stepsLogged, weightLogged)

date* :

the date of the task which represents the date of the the tracker log

flowchart LR l-Progress_Service[Progress Service]:::producer-->UpdateChallengeTask[UpdateChallengeTask]:::event classDef event stroke:#1f4a28,stroke-width: 4px; classDef producer stroke:#75d7b6,stroke-width: 2px; classDef consumer stroke:#818cf8,stroke-width: 2px; UpdateChallengeTask[UpdateChallengeTask]:::event-->r-unknown[unknown]:::consumer click l-Progress_Service href "/services/Progress Service" "Go to Progress Service" _self click r-unknown href "/services/unknown" "Go to unknown" _self click UpdateChallengeTask href "/events/UpdateChallengeTask" "Go to UpdateChallengeTask" _self
UpdateChallengeTask Schema (yml)
openapi: 3.0.0
info:
  version: "1.0.0"
  title: UpdateChallengeTask
paths: {}
components:
  schemas:
    UpdateChallengeTask:
      type: object
      required:
        - metadata
        - data
      properties:
        data:
          $ref: "#/components/schemas/Data"
        metadata:
          $ref: "#/components/schemas/Metadata"
    Data:
      type: object
      required:
        - subscriptionId
        - challengeType
        - taskType
        - date
      properties:
        subscriptionId:
          type: string
        challengeType:
          type: string
          enum: 
            - weightLoss
        taskType:
          type: string
          enum:
            - foodLogged
            - waterLogged
            - stepsLogged
            - weightLogged
        date:
          type: string

    Metadata:
      type: object
      required:
        - version
        - serviceFunction
      properties:
        version:
          type: string
        serviceFunction:
          type: string
Edit this pageLast updated on 2024/4/2