Calculate streak
Calculate Streak
Calculate the user’s streak, and increase it if necessary.
POST
/
calculate-streak
Query Parameters
increase
boolean
Can be added to the query string to increase a user's streak. If needed, set increase = true
Body
application/json
userID
string
requiredThe unique identifier of the user to calculate the streak for.
Response
200 - application/json
200
integer
HTTP status code indicating a successful operation.
streak
string
Specifies the user's calculated streak.