Trying to create interactions for Salesforce Marketing Cloud Journey Builder via the REST API which can later be triggered using a REST API /interactions/v1/events call.
My current attempt is as follows:
{
"key": "TestInteractionSansKey",
"name": "New interaction without trigger event",
"version": 1,
"workflowApiVersion": 1.0,
"triggers": [ {
"eventDefinitionKey": "MyTestEventKey",
"data": [{
"key": "MyDataKey",
"name": "Data key",
"items": [{
"values": [{
"name": "contactKey",
"value": "test"
}]
}]
}]
}]
}
If I pull out the 'triggers' field, everything works as intended, but I need the interaction to have a trigger that I can invoke later. So what should this 'triggers' field look like? What fields do the objects need? The error messages have not been much help.