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/reward-rules//publish' \
--header 'Authorization: Bearer <token>'
{
"rewardRuleId": "string",
"name": "string",
"ruleType": "INSTANCE",
"matchEntity": "Mission",
"matchEntityId": "string",
"matchCondition": {
"==": [
1,
1
]
},
"applicationMode": "ALWAYS",
"origin": "CATALOG",
"rewardRuleCatalogId": "string",
"syncWithCatalog": true,
"defaultLang": "aa",
"langs": [
"aa"
],
"rewards": [
{
"virtualCurrencyId": "string",
"redemptionMode": "AUTO",
"expression": {
"==": [
1,
1
]
}
}
],
"accountId": "stringstri",
"workspaceId": "stringstri",
"sourceRegion": "us-east-1",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"stage": "DRAFT"
}