Recent searches
No recent searches
Unable to create a public comment in a zendesk ticket with specified author id
Posted Sep 08, 2022
I'm unable to create a public comment in a zendesk ticket via API when I specify property author_id . When I supply `author_id` in PUT json request then only private ticket is being created even when I set public as `true`. If I remove `author_id` property completely from the json request then the comment is being posted from the user name from which I created bearer token (i.e admin). Pl help as I'm following zendesk documentation only!
Here is user details to confirm that author_id that I'm sending is a valid one
Returned comment json from comments api
0
7
7 comments
Vaibhav Agarwal (Vibs)
@... can u guide me here or redirect me to the relevant source ?
0
Eric Nelson
Most likely the role of the person you're trying to make the request on behalf of is only allowed to make private comments. You can check this by going into the admin center and checking the corresponding role to see if they are configured with this setting. If this isn't the case, I'd advise on contacting support so that we can take a closer look.
Hope this helps,
1
Vaibhav Agarwal (Vibs)
Thanks Eric Nelson it was really helpful.
0
Johnny lever
Vaibhav Agarwal (Vibs) what headers did you use beside the auth ?
Im trying to add a comment on a ticket but its not adding a comment, its a public comment! Its in php Laravel. Every other request is working fine so far.
0
Eric Nelson
Johnny lever
I've removed your screenshot as it had your auth credentials exposed. Feel free to add another one with that omitted.
0
Johnny lever
Eric Nelson Okay I have updated my comment with a new picture. Could you please check and answer. Thanks.
0
Eric Nelson
What's the status code you're getting back? When you look at the tickets events when was the ticket last updated?
Thanks!
0