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": "875" }
200
successful
400
Bad request
{ "type": "ticket", "id": "4883", "ticket_id": "207", "ticket_attributes": { }, "ticket_state": "submitted", "ticket_state_internal_label": "Submitted", "ticket_state_external_label": "Submitted", "ticket_type": { "type": "ticket_type", "id": "875", "name": "my-ticket-type-1", "description": "my ticket type description is awesome.", "icon": "🦁", "workspace_id": "this_is_an_id382_that_should_be_at_least_", "archived": false, "created_at": 1712223061, "updated_at": 1712223061, "is_internal": false, "ticket_type_attributes": { "type": "list", "data": [ ] }, "category": "Customer" }, "contacts": { "type": "contact.list", "contacts": [ { "type": "contact", "id": "660e73536abd01bd27af61ed", "external_id": "70" } ] }, "admin_assignee_id": "0", "team_assignee_id": "0", "created_at": 1712223059, "updated_at": 1712223061, "ticket_parts": { "type": "ticket_part.list", "ticket_parts": [ { "type": "ticket_part", "id": "1135", "part_type": "comment", "body": "<p>Comment for message</p>", "created_at": 1712223059, "updated_at": 1712223059, "author": { "id": "660e73536abd01bd27af61ed", "type": "user", "name": "Joe Bloggs", "email": "joe@bloggs.com" }, "attachments": [ ], "redacted": false }, { "type": "ticket_part", "id": "1136", "part_type": "ticket_state_updated_by_admin", "ticket_state": "submitted", "previous_ticket_state": "submitted", "created_at": 1712223061, "updated_at": 1712223061, "author": { "id": "991282516", "type": "bot", "name": "Operator", "email": "operator+this_is_an_id382_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 }