Hi @abrkhan,
When looking to create a task with email type engagement using the Create an Engagement | Engagements API, you can do so by adding the taskType key under metadata. Example below:
For EMAIL task type:
{
"engagement": {
"active": true,
"ownerId": {{owner id}},
"type": "TASK",
"timestamp": 1409172644778
},
"associations": {
"contactIds": [{{contact id}}],
"companyIds": [ ],
"dealIds": [ ],
"ownerIds": [ ]
},
"metadata": {
"body": "via api",
"taskType": "EMAIL",
"subject":"this is an email task type"
}
}
For CALL task type:
{
"engagement": {
"active": true,
"ownerId": {{owner id}},
"type": "TASK",
"timestamp": 1409172644778
},
"associations": {
"contactIds": [{{contact id}}],
"companyIds": [ ],
"dealIds": [ ],
"ownerIds": [ ]
},
"metadata": {
"body": "via api",
"taskType": "CALL",
"subject":"this is an CALL task type"
}
}
For TODO task type:
{
"engagement": {
"active": true,
"ownerId": {{owner id}},
"type": "TASK",
"timestamp": 1409172644778
},
"associations": {
"contactIds": [{{contact id}}],
"companyIds": [ ],
"dealIds": [ ],
"ownerIds": [ ]
},
"metadata": {
"body": "via api",
"taskType": "TODO",
"subject":"this is an TODO task type"
}
}