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": "785002" }
200
successful
400
Bad request
{ "type": "ticket", "id": "732666", "ticket_id": "729507", "ticket_attributes": { }, "ticket_state": "submitted", "ticket_type": { "type": "ticket_type", "id": "785002", "name": "my-ticket-type-1", "description": "my ticket type description is awesome.", "icon": "🦁", "workspace_id": "this_is_an_id381_that_should_be_at_least_", "archived": false, "created_at": 1695333666, "updated_at": 1695333666, "is_internal": false, "ticket_type_attributes": { "type": "list", "data": [ ] }, "category": "Customer" }, "contacts": { "type": "contact.list", "contacts": [ { "type": "contact", "id": "650cbd1f6d0a728750658b99", "external_id": "70" } ] }, "admin_assignee_id": "0", "team_assignee_id": "0", "created_at": 1695333663, "updated_at": 1695333667, "ticket_parts": { "type": "ticket_part.list", "ticket_parts": [ { "type": "ticket_part", "id": "727513", "part_type": "comment", "body": "<p>Comment for message</p>", "created_at": 1695333663, "updated_at": 1695333663, "author": { "id": "650cbd1f6d0a728750658b99", "type": "user", "name": "Joe Bloggs", "email": "joe@bloggs.com" }, "attachments": [ ], "redacted": false }, { "type": "ticket_part", "id": "727514", "part_type": "ticket_state_updated_by_admin", "ticket_state": "submitted", "previous_ticket_state": "submitted", "created_at": 1695333667, "updated_at": 1695333667, "author": { "id": "991266480", "type": "bot", "name": "Operator", "email": "operator+this_is_an_id381_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 }