curl --request POST \
--url https://api1.irisagent.com/v1/cases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"id": "12345",
"subject": "Application will not access the logs",
"status": "open",
"timeOfCreation": 17437722600,
"description": "<string>",
"priority": "high",
"type": "<string>",
"brand_id": "<string>",
"form_id": "<string>",
"tags": [
"billing",
"urgent"
],
"comments": [
{
"commentId": "123e4567-e89b-12d3-a456-426655440000",
"comment": "Please help to fix this ASAP.",
"commenter": "Customer",
"timeOfCreation": 17437722600,
"isPublic": true
}
],
"url": "https://support.example.com/cases/12345",
"custom_fields": {
"department": "IT",
"priority_level": 1
},
"kb_links": [
"<unknown>"
],
"source": "email",
"spam": false
}
]
}
'