Trying to update field via API but no change on ticket
已于 2021年2月24日 发布
Hello,
I'm trying to update some ticket fields via API, but getting a non-error failure. Can someone please suggest what I should try to unblock this? Below is my request:
Note - I've also tried this with the following syntax, but with the same outcome:
{ "ticket": { "name": "Feature Request" } }
And this is the job_status output I get:
0
1
1 条评论
Greg Katechis
Hi Borys! The reason that this is happening is because the object for custom ticket fields is different than how you are sending this in. You need to use the `custom_fields` attribute, and then pass that in an array of objects, even if it is just a single field that you are updating. Take a look at this article for the specifics around this.
Additionally, since you are using a bulk update method, you are launching a job that will either successfully complete or fail as a whole. As such, you won't receive the specific error response that you would get when individually trying to update this. If you made this update using the Update Ticket API, you should receive a 422.
0
登录 to leave a comment.