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/missions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": "string",
"groupTagId": "string",
"missionType": "INDIVIDUAL",
"missionConfigurationId": "string",
"startsAt": "2019-08-24T14:15:22Z",
"endsAt": "2019-08-24T14:15:22Z",
"currentAmount": 0,
"targetAmount": 0,
"timeframeType": "RANGE"
}'
{
"userId": "string",
"groupTagId": "string",
"missionId": "string",
"missionType": "INDIVIDUAL",
"missionConfigurationId": "string",
"missionRuleId": "string",
"periodId": "string",
"timeframeType": "PERMANENT",
"startsAt": "2019-08-24T14:15:22Z",
"endsAt": "2019-08-24T14:15:22Z",
"completedAt": "2019-08-24T14:15:22Z",
"isCompleted": true,
"state": "PENDING",
"matchType": "INSTANCE",
"matchEntity": "Activity",
"matchEntityId": "string",
"matchCondition": {
"==": [
1,
1
]
},
"incrementExpression": {
"==": [
1,
1
]
},
"targetAmountExpression": {
"==": [
1,
1
]
},
"currentAmount": 0,
"targetAmount": 0,
"accountId": "stringstri",
"workspaceId": "stringstri",
"sourceRegion": "us-east-1",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}