AWorld APIs are in a pre-alpha stage and are being updated frequently. For integration inquiries or technical information, please contact us at server@aworld.org.
curl --location --request POST 'https://api.eu-west-1.aworld.cloud/dashboard/v1/streak-rules//publish' \
--header 'Authorization: Bearer <token>'
{
"streakRuleId": "string",
"name": "string",
"description": "string",
"streakConfigurationId": "string",
"usersMatchCondition": {
"==": [
1,
1
]
},
"timeframeType": "PERMANENT",
"timeframeTimezoneType": "FIXED",
"timeframeTimezone": "Europe/Andorra",
"timeframeStartsAt": "2019-08-24T14:15:22Z",
"timeframeEndsAt": "2019-08-24T14:15:22Z",
"cadence": "DAY",
"perfectWeekEnabled": false,
"perfectMonthEnabled": false,
"perfectYearEnabled": false,
"freezeEnabled": true,
"freezeVirtualCurrencyId": "string",
"freezeCostExpression": {
"==": [
1,
1
]
},
"goalTargets": [
1
],
"state": "PENDING",
"origin": "CATALOG",
"streakRuleCatalogId": "string",
"syncWithCatalog": true,
"defaultLang": "aa",
"langs": [
"aa"
],
"accountId": "stringstri",
"workspaceId": "stringstri",
"sourceRegion": "us-east-1",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"stage": "DRAFT"
}