You can convert a conversation to a ticket.
You can convert a conversation to a ticket.
ticket_type_id required | string The ID of the type of ticket you want to convert the conversation to |
object (Ticket Attributes) The attributes set on the ticket. When setting the default title and description attributes, the attribute keys that should be used are |
{ "ticket_type_id": "287" }
200
successful
400
Bad request
{ "type": "ticket", "id": "1700", "ticket_id": "81", "ticket_attributes": { }, "ticket_state": "submitted", "ticket_state_internal_label": "Submitted", "ticket_state_external_label": "Submitted", "ticket_type": { "type": "ticket_type", "id": "287", "name": "my-ticket-type-1", "description": "my ticket type description is awesome.", "icon": "🦁", "workspace_id": "this_is_an_id393_that_should_be_at_least_", "archived": false, "created_at": 1715077966, "updated_at": 1715077966, "is_internal": false, "ticket_type_attributes": { "type": "list", "data": [ ] }, "category": "Customer" }, "contacts": { "type": "contact.list", "contacts": [ { "type": "contact", "id": "663a034c262d16a19645eebb", "external_id": "70" } ] }, "admin_assignee_id": "0", "team_assignee_id": "0", "created_at": 1715077964, "updated_at": 1715077967, "ticket_parts": { "type": "ticket_part.list", "ticket_parts": [ { "type": "ticket_part", "id": "380", "part_type": "comment", "body": "<p>Comment for message</p>", "created_at": 1715077964, "updated_at": 1715077964, "author": { "id": "663a034c262d16a19645eebb", "type": "user", "name": "Joe Bloggs", "email": "joe@bloggs.com" }, "attachments": [ ], "redacted": false }, { "type": "ticket_part", "id": "381", "part_type": "ticket_state_updated_by_admin", "ticket_state": "submitted", "previous_ticket_state": "submitted", "created_at": 1715077967, "updated_at": 1715077967, "author": { "id": "991271751", "type": "bot", "name": "Operator", "email": "operator+this_is_an_id393_that_should_be_at_least_@intercom.io" }, "attachments": [ ], "redacted": false } ], "total_count": 2 }, "open": true, "linked_objects": { "type": "list", "data": [ ], "total_count": 0, "has_more": false }, "category": "Customer", "is_shared": true }