curl --location --request PUT 'https://api.eu-west-1.aworld.cloud/dashboard/v1/learning-path-rules/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"defaultLang": "aa",
"ruleType": "ASSIGN",
"usersMatchCondition": {
"==": [
1,
1
]
},
"learningPathsPool": [
"string"
],
"learningPathsMatchCondition": {
"==": [
1,
1
]
},
"initialVisibilityCondition": {
"==": [
1,
1
]
},
"unlockLearningPathId": "string",
"groupId": "string",
"timeframeType": "PERMANENT",
"timeframeTimezoneType": "FIXED",
"timeframeTimezone": "Europe/Andorra",
"timeframeStartsAt": "2019-08-24T14:15:22.123Z",
"timeframeEndsAt": "2019-08-24T14:15:22.123Z",
"recurrence": "DAILY",
"scheduleCron": "string",
"assignmentMode": "LAZY",
"eventMatchType": "INSTANCE",
"eventMatchEntity": "LearningPathLog",
"eventMatchEntityId": "string",
"eventMatchCondition": {
"==": [
1,
1
]
},
"translations": [
{
"lang": "aa",
"description": "string"
}
]
}'{
"learningPathRuleId": "string",
"ruleType": "ASSIGN",
"name": "string",
"usersMatchCondition": {
"==": [
1,
1
]
},
"learningPathsPool": [
"string"
],
"learningPathsMatchCondition": {
"==": [
1,
1
]
},
"initialVisibilityCondition": {
"==": [
1,
1
]
},
"unlockLearningPathId": "string",
"groupId": "string",
"timeframeType": "PERMANENT",
"timeframeTimezoneType": "FIXED",
"timeframeTimezone": "Europe/Andorra",
"timeframeStartsAt": "2019-08-24T14:15:22.123Z",
"timeframeEndsAt": "2019-08-24T14:15:22.123Z",
"recurrence": "DAILY",
"scheduleCron": "string",
"assignmentMode": "LAZY",
"state": "PENDING",
"eventMatchType": "INSTANCE",
"eventMatchEntity": "LearningPathLog",
"eventMatchEntityId": "string",
"eventMatchCondition": {
"==": [
1,
1
]
},
"origin": "CATALOG",
"learningPathRuleCatalogId": "string",
"syncWithCatalog": true,
"defaultLang": "aa",
"langs": [
"aa"
],
"accountId": "stringstri",
"workspaceId": "stringstri",
"sourceRegion": "us-east-1",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z",
"stage": "DRAFT"
}