{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can convert a conversation to a ticket.","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"path":{"type":"object","properties":{"conversation_id":{"type":"integer","examples":[123],"description":"The id of the conversation to target"}},"required":["conversation_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/convert_conversation_to_ticket_request","examples":[{"ticket_type_id":"53"}]}},"required":["path"],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]},"convert_conversation_to_ticket_request":{"description":"You can convert a Conversation to a Ticket","type":"object","title":"Convert Ticket Request Payload","properties":{"ticket_type_id":{"type":"string","description":"The ID of the type of ticket you want to convert the conversation to","examples":["1234"]},"ticket_state_id":{"type":"string","description":"The ID of the ticket state associated with the ticket type."},"attributes":{"$ref":"#/definitions/ticket_request_custom_attributes"}},"required":["ticket_type_id"]},"ticket_request_custom_attributes":{"title":"Ticket Attributes","type":"object","description":"The attributes set on the ticket. When setting the default title and description attributes, the attribute keys that should be used are `_default_title_` and `_default_description_`. When setting ticket type attributes of the list attribute type, the key should be the attribute name and the value of the attribute should be the list item id, obtainable by [listing the ticket type](ref:get_ticket-types). For example, if the ticket type has an attribute called `priority` of type `list`, the key should be `priority` and the value of the attribute should be the guid of the list item (e.g. `de1825a0-0164-4070-8ca6-13e22462fa7e`). For a `files` attribute, pass an array of upload ids; for a `relationship` attribute, pass an array of related object ids as strings.","additionalProperties":{"anyOf":[{"type":["string","null"]},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"integer"}},{"type":"array","items":{"type":"string"}}]},"examples":[{"_default_title_":"Found a bug","_default_description_":"The button is not working"}]}}},"name":"Convert a conversation to a ticket","id":"intercom.convertconversationtoticket","example":{"path":{"conversation_id":123}},"maxRequests":1,"summary":false}}