- which group associations do we include? parents, children, both? how many?
- what if the associated groups are not yet created: order of request matter
Url
POST https://cubus.motimateapp.com/api/webhooks/mychain
Headers
Authorization: Basic base64encodedpassword
Body
{
"event": {
"type": "create",
"id": "UUUID-XXXXXXXXXX"
},
"resource": {
"type": "course"
"id": 3505,
},
"group": {
"import_id": "internal_id_3505"
"name": "MyChain team",
"level": "level_4",
"enabled": true
}
"group_associations": [
{
"origin_import_id": "internal_id_3505",
"destination_import_id": "internal_id_3935",
"kind":"parent-child",
}
]
}
Status
200
Headers
Body
{}
this to notice:
group_import_id
equal tointernal_id_XXXX
, those are groups that were not imported into MyChain, so they don't have animport_id
. So i compute one from theirid
.Event
to keep record of the events sent from MyChain to Motimate.