Merge

Resource Fields

Name Type Read-only Description
case Case

Metadata




 
 




Actions

Merge cases

Post /api/v1/cases/:id/merge.json

Information

Allowed for Agents, Admins & Owners
Scope conversations

Parameters

Name Type Mandatory Description
case_ids string
The comma separated conversation ids, that is going to be merged into current conversation

Response

    {
        "status": 201,
        "data": {
    "id": 1,

    "legacy_id": "YAK-923-46434",
    "subject": "Atmosphere Coffee, Inc annual maintenance",
    "portal": "API",
    "source_channel": {
    "uuid": "37e31d9d-cbd4-48a2-9134-1206abefa1b4",

    "resource_type": "channel"
},
    "last_public_channel": {
    "uuid": "37e31d9d-cbd4-48a2-9134-1206abefa1b4",

    "resource_type": "channel"
},
    "requester": 




{
    "id": 2,

    "resource_type": "user"

}
,
    "creator": 



{
    "id": 1,

    "resource_type": "user"

}
,
    "identity": {
    "id": 1,

    "resource_type": "identity_email"

},
    "assigned_agent": 



{
    "id": 1,

    "resource_type": "user"

}
,
    "assigned_team": {
    "id": 1,
    "legacy_id": null,

    "resource_type": "team"

},
    "last_assigned_by": 



{
    "id": 1,

    "resource_type": "user"

}
,
    "brand": {
    "id": 1,

    "resource_type": "brand"

}
,
    "status": {
    "id": 1,

    "resource_type": "case_status"

},
    "priority": {
    "id": 3,

    "resource_type": "case_priority"

},
    "type": {
    "id": 1,

    "resource_type": "case_type"

}
,
    "read_marker": {
  "id": 1,

  "resource_type": "read_marker"
},
    "sla_version": {
        "id": 1,
        "resource_type": "sla_version"
    },
    "sla_metrics": [




{
    "id": 1,

    "resource_type": "sla_metric"
},




{
    "id": 2,

    "resource_type": "sla_metric"
},




{
    "id": 3,

    "resource_type": "sla_metric"
}
    ],
    "form": {
    "id": 1,

    "resource_type": "case_form"

}

,
    "custom_fields": [
        {
            "field": {
    "id": 1,

    "resource_type": "case_field"

},
            "value": "3",
            "resource_type": "case_field_value"
        }
    ],
    "last_replier": 



{
    "id": 1,

    "resource_type": "user"

}
,
    "last_replier_identity": {
    "id": 1,

    "resource_type": "identity_email"

},
    "last_completed_by": null,
    "last_updated_by": null,
    "last_closed_by": null,
    "state": "ACTIVE",
    "post_count": 2,
    "has_notes": false,
    "pinned_notes_count": 0,
    "has_attachments": false,
    "is_merged": false,
    "rating": null,
    "rating_status": "UNOFFERED",
    "last_post_status": "SEEN",
    "last_post_preview": "My HubID is 525862. I'm trying to send a notification email to my salespeople when a contact is assigned to them. All of my other salespeople are receiving the emails fine, but for one person they never arrived. We checked in their SPAM folder, but the...",
    "last_post_type": "PUBLIC",
    "last_message_preview": "My HubID is 525862. I'm trying to send a notification email to my salespeople when a contact is assigned to them. All of my other salespeople are receiving the emails fine, but for one person they never arrived. We checked in their SPAM folder, but the...",
    "realtime_channel": "presence-d6c6a8b31be92885222ee53dde6c99c745c5f4cf77f1bd9dd3519d07fa730c71@v1_cases_1",
    "last_assigned_at": "2015-07-30T06:45:25+05:00",
    "last_replied_at": "2015-07-27T11:35:09+05:00",
    "last_opened_at": null,
    "last_pending_at": null,
    "last_closed_at": null,
    "last_completed_at": null,
    "last_agent_activity_at": null,
    "last_customer_activity_at": "2015-07-30T06:45:25+05:00",
    "last_reply_by_agent_at": null,
    "last_reply_by_requester_at": null,
    "agent_updated_at": null,
    "latest_assignee_update": null,
    "created_at": "2015-07-30T06:45:25+05:00",
    "updated_at": "2015-07-30T06:45:25+05:00",

    "resource_type": "case"

    ,"resource_url": "https://brewfictus.kayako.com/api/v1/cases/1"

}
,
        "resource": "case"
    }