{
"interaction_id": 0,
"interaction_flow_type": "AUTO_START",
"interaction_modality": "CALL",
"interaction_status": "scheduled",
"scheduled_time": "2019-08-24T14:15:22Z",
"ended_time": "2019-08-24T14:15:22Z",
"scheduled_time_timezone": "string",
"variables": {
"property1": "string",
"property2": "string"
},
"messages": [
{
"sender": "agent",
"message": "string",
"timestamp": "2019-08-24T14:15:22Z"
}
],
"transcript": "string",
"customer_details": {
"customer_name": "string",
"customer_email": "user@example.com",
"customer_phone_number": "string"
}
}
curl --location --request PUT 'https://staging-api.formi.co.in/v2/interactions/454' \
--header 'token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAwLCJ0eXBlIjoiT1VUTEVUIiwibmFtZSI6IkVrb3N0YXkifQ.7ElxWvnf5p3_1MuXd5q-XyxFXXXHUFLgHs4YRgWuqbc' \
--header 'Content-Type: application/json' \
--data-raw '{
"interaction_id": 0,
"interaction_flow_type": "AUTO_START",
"interaction_modality": "CALL",
"interaction_status": "scheduled",
"scheduled_time": "2019-08-24T14:15:22Z",
"ended_time": "2019-08-24T14:15:22Z",
"scheduled_time_timezone": "string",
"variables": {
"property1": "string",
"property2": "string"
},
"messages": [
{
"sender": "agent",
"message": "string",
"timestamp": "2019-08-24T14:15:22Z"
}
],
"transcript": "string",
"customer_details": {
"customer_name": "string",
"customer_email": "user@example.com",
"customer_phone_number": "string"
}
}'
{
"success": true,
"message": "Interaction updated successfully",
"payload": {
"interaction_id": 454,
"updated_status": "ended"
}
}