Create streaksAsk AIpost https://{host}/v3/targetGroupsBody ParamsactivebooleanIndicate if the target is active.descriptionstringBrief description of the target. The character limit for the description is 255 characters and special characters are supported.namestringrequiredName for the target. The name can be up to 200 characters long, supports special characters, and is case-insensitive.preferredTillIdint32Identifier for the preferred or primary POS till for the target.trackingTypestringenumrequiredType of tracking the milestone is created for.Allowed:DEFAULTSTREAKCAPPINGtargetEvaluationTypestringenumrequiredDefines the type of time frame used for evaluating the target.Allowed:FIXED_CALENDAR_WINDOWCYCLIC_WINDOWPERIOD_AGNOSTIC_WINDOWtotalPeriodsint32requiredTotal number of period cycles for the target group.frequencyTypestringenumrequiredFrequency of each cycle in which the user has to achieve the target valueAllowed:MONTHLYQUARTERLYHALF_YEARLYYEARLYWEEKLYDAILYCUSTOMfrequencyint32requiredNumber of units corresponding to the selected frequencyType For example: If frequencyType is DAILY and frequency is 10, the cycle spans ten days.recurringCyclesint32requiredTotal number of cycles defined for the target group. Once a cycle is complete, the target is reset for the new cycle. A maximum of 100 cycles can be defined for a target group.endDatestringrequiredEnd date and time of the period in ISO 8601 YYYY-MM-DDTHH:mm:ss.SSS format. Example: 2024-10-24T23:59:00.000.periodStatusstringenumIndicate if the cycle of the Milestone is running or upcoming.Allowed:RUNNINGUPCOMINGNOT_STARTEDrefCodestringrequiredA reference code for the period.startDatestringrequiredStart date and time of the period in ISO 8601 YYYY-MM-DDTHH:mm:ss.SSS format. Example: 2024-10-24T00:00:00.000expressionbooleanIndicate if the target has an expression for evaluation.expressionJsonstringA JSON expression that specifies the conditions required to achieve the target. The expression is generated in the backend.targetEntitystringenumrequiredDefaults to ALTERNATE_CURRENCIESKPI on which the target is tracked.Allowed:ALTERNATE_CURRENCIESenrolmentMethodstringenumMethod of enrolment for the target.Allowed:TRANSACTIONIMPORTtargetTypestringenumrequiredType of targetAllowed:ALLREGULARPROMOTIONdefaultValuefloatDefault value for the target.alternateCurrencyIdentifierstringrequiredUnique identifier of the alternate currency that is generated when creating an alternate currency.programIdint32requiredUnique ID of the loyalty program that includes the alternate currency.Responses 201Created 400400Updated about 1 month ago