Hello,
I want to create a new ticket with two comments via API. One public and one private. The public comment will display the request from the user. The private comment will be added by a bot that pulls information about the type of request to remind the agent of the steps to take for the given request type.
I tried doing a POST request as follows which did not work. The ticket was created but it did not have the comments.
{ "ticket": { "description": "test ticket", "tags": [ "test" ], "comments": [ { "type":"Comment", "body": "comment 1" }, { "type":"Comment", "body": "comment 2" } ], "custom_fields": [ { "id": 360022772534, "value": "test" }, { "id": 360034885213, "value": "test" } ] } }
This is the format used when doing a GET request for comments by ticket. Note I tried type: comment in all lowercase as well which did not work.
Is there a way via the API do do what I am trying to do in a single request?
Thanks in advance.
